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
This commit is contained in:
alex 2005-07-18 19:59:03 +00:00
parent 57b7f68b80
commit a5a752770c
1 changed files with 2 additions and 0 deletions

View File

@ -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.