summaryrefslogtreecommitdiffstats
path: root/mencoder.c
diff options
context:
space:
mode:
authoralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-07-18 19:59:03 +0000
committeralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-07-18 19:59:03 +0000
commita5a752770cd93f9217bdf4a7dde364c466a00e06 (patch)
treec6f1cd3699624e4a77e05f5ab0003634ac077403 /mencoder.c
parent57b7f68b800447f834ae1b97de633987255b1898 (diff)
downloadmpv-a5a752770cd93f9217bdf4a7dde364c466a00e06.tar.bz2
mpv-a5a752770cd93f9217bdf4a7dde364c466a00e06.tar.xz
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
Diffstat (limited to 'mencoder.c')
-rw-r--r--mencoder.c2
1 files changed, 2 insertions, 0 deletions
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.