aboutsummaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer2015-06-25 23:43:18 +0200
committerMichael Niedermayer2015-06-25 23:44:06 +0200
commit8c22143e7e006bb66bc380a874ceb609b62d8997 (patch)
treeca237740efb4e2ef971d75b5ad69515d16dafef3 /ffmpeg.c
parentcdcf637d56c69bf43915cb9078f533e86f83bf10 (diff)
ffmpeg: Use 2 instead of STDERR_FILENO
STDERR_FILENO is not available on windows Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index f537ce9c5d..8b3f34723e 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);
}
}