ffmpeg: Use 2 instead of STDERR_FILENO

STDERR_FILENO is not available on windows

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2015-06-25 23:43:18 +02:00
parent cdcf637d56
commit 8c22143e7e
1 changed files with 3 additions and 2 deletions

View File

@ -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);
}
}