mirror of https://git.ffmpeg.org/ffmpeg.git
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++;
|
received_nb_signals++;
|
||||||
term_exit_sigsafe();
|
term_exit_sigsafe();
|
||||||
if(received_nb_signals > 3) {
|
if(received_nb_signals > 3) {
|
||||||
write(STDERR_FILENO, "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"));
|
strlen("Received > 3 system signals, hard exiting\n"));
|
||||||
|
|
||||||
exit(123);
|
exit(123);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue