mirror of https://github.com/mpv-player/mpv
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:
parent
57b7f68b80
commit
a5a752770c
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue