comparison mencoder.c @ 16002:433234c2a4aa

catch HUP and PIPE signals aswell. Patch by Sergey Khlutchin (@gmail.com)
author alex
date Mon, 18 Jul 2005 19:59:03 +0000
parents d565dc2ce82e
children 0ccf19820216
comparison
equal deleted inserted replaced
16001:b939c687986f 16002:433234c2a4aa
934 decoded_frameno=0; 934 decoded_frameno=0;
935 935
936 signal(SIGINT,exit_sighandler); // Interrupt from keyboard 936 signal(SIGINT,exit_sighandler); // Interrupt from keyboard
937 signal(SIGQUIT,exit_sighandler); // Quit from keyboard 937 signal(SIGQUIT,exit_sighandler); // Quit from keyboard
938 signal(SIGTERM,exit_sighandler); // kill 938 signal(SIGTERM,exit_sighandler); // kill
939 signal(SIGHUP,exit_sighandler); // broken terminal line
940 signal(SIGPIPE,exit_sighandler); // broken pipe
939 941
940 timer_start=GetTimerMS(); 942 timer_start=GetTimerMS();
941 } // if (!curfile) // if this was the first file. 943 } // if (!curfile) // if this was the first file.
942 else if (sh_audio) { 944 else if (sh_audio) {
943 int out_format = 0, out_minsize = 0, out_maxsize = 0; 945 int out_format = 0, out_minsize = 0, out_maxsize = 0;