# HG changeset patch # User alex # Date 1121716743 0 # Node ID 433234c2a4aa9bcf7bf72ea4eb5a520f896afb91 # Parent b939c687986ff898f333f24cffe16269df14662a catch HUP and PIPE signals aswell. Patch by Sergey Khlutchin (@gmail.com) diff -r b939c687986f -r 433234c2a4aa mencoder.c --- 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.