ffmpeg: Use 2 instead of STDERR_FILENO

STDERR_FILENO is not available on windows

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/227/head
Michael Niedermayer 10 years ago
parent cdcf637d56
commit 8c22143e7e
  1. 5
      ffmpeg.c

@ -322,8 +322,9 @@ sigterm_handler(int sig)
received_nb_signals++;
term_exit_sigsafe();
if(received_nb_signals > 3) {
write(STDERR_FILENO, "Received > 3 system signals, hard exiting\n",
strlen("Received > 3 system signals, hard exiting\n"));
write(2/*STDERR_FILENO*/, "Received > 3 system signals, hard exiting\n",
strlen("Received > 3 system signals, hard exiting\n"));
exit(123);
}
}

Loading…
Cancel
Save