mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
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:
parent
cdcf637d56
commit
8c22143e7e
5
ffmpeg.c
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…
Reference in New Issue
Block a user