Browse Source

ffmpeg: log error message when shutting down from too many signals

write() suggested by wm4
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.8
rogerdpack Michael Niedermayer 10 years ago
parent
commit
1bcdac2da3
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      ffmpeg.c

+ 4
- 1
ffmpeg.c View File

@@ -321,8 +321,11 @@ sigterm_handler(int sig)
received_sigterm = sig; received_sigterm = 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",
strlen("Received > 3 system signals, hard exiting\n"));
exit(123); exit(123);
}
} }


void term_init(void) void term_init(void)


Loading…
Cancel
Save