[FFmpeg-cvslog] ffmpeg: Use 2 instead of STDERR_FILENO
Michael Niedermayer
git at videolan.org
Thu Jun 25 23:52:49 CEST 2015
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Jun 25 23:43:18 2015 +0200| [8c22143e7e006bb66bc380a874ceb609b62d8997] | committer: Michael Niedermayer
ffmpeg: Use 2 instead of STDERR_FILENO
STDERR_FILENO is not available on windows
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8c22143e7e006bb66bc380a874ceb609b62d8997
---
ffmpeg.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/ffmpeg.c b/ffmpeg.c
index f537ce9..8b3f347 100644
--- a/ffmpeg.c
+++ b/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);
}
}
More information about the ffmpeg-cvslog
mailing list