From a5a752770cd93f9217bdf4a7dde364c466a00e06 Mon Sep 17 00:00:00 2001 From: alex Date: Mon, 18 Jul 2005 19:59:03 +0000 Subject: [PATCH] catch HUP and PIPE signals aswell. Patch by Sergey Khlutchin (@gmail.com) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16003 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mencoder.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mencoder.c b/mencoder.c index f7c97dcd79..6844c3c2b5 100644 --- a/mencoder.c +++ b/mencoder.c @@ -936,6 +936,8 @@ decoded_frameno=0; 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.