changeset 16002:433234c2a4aa

catch HUP and PIPE signals aswell. Patch by Sergey Khlutchin (@gmail.com)
author alex
date Mon, 18 Jul 2005 19:59:03 +0000
parents b939c687986f
children d7a8675c2fe1
files mencoder.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mencoder.c	Mon Jul 18 00:10:09 2005 +0000
+++ b/mencoder.c	Mon Jul 18 19:59:03 2005 +0000
@@ -936,6 +936,8 @@
 signal(SIGINT,exit_sighandler);  // Interrupt from keyboard
 signal(SIGQUIT,exit_sighandler); // Quit from keyboard
 signal(SIGTERM,exit_sighandler); // kill
+signal(SIGHUP,exit_sighandler);  // broken terminal line
+signal(SIGPIPE,exit_sighandler); // broken pipe
 
 timer_start=GetTimerMS();
 } // if (!curfile) // if this was the first file.