diff mencoder.c @ 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 d565dc2ce82e
children 0ccf19820216
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.