Index: mplayer.c =================================================================== RCS file: /cvsroot/mplayer/main/mplayer.c,v retrieving revision 1.855 retrieving revision 1.856 diff -u -r1.855 -r1.856 --- mplayer.c 21 Jul 2005 14:03:52 -0000 1.855 +++ mplayer.c 22 Jul 2005 17:11:39 -0000 1.856 @@ -19,6 +19,7 @@ #define SIGQUIT 3 /* quit */ #define SIGKILL 9 /* kill (cannot be caught or ignored) */ #define SIGBUS 10 /* bus error */ +#define SIGPIPE 13 /* broken pipe */ extern int mp_input_win32_slave_cmd_func(int fd,char* dest,int size); #endif @@ -1435,6 +1436,7 @@ signal(SIGINT,exit_sighandler); // Interrupt from keyboard signal(SIGQUIT,exit_sighandler); // Quit from keyboard + signal(SIGPIPE,exit_sighandler); // Some window managers cause this #ifdef ENABLE_SIGHANDLER // fatal errors: signal(SIGBUS,exit_sighandler); // bus error Index: mencoder.c =================================================================== RCS file: /cvsroot/mplayer/main/mencoder.c,v retrieving revision 1.298 retrieving revision 1.300 diff -u -r1.298 -r1.300 --- mencoder.c 17 Jul 2005 19:40:05 -0000 1.298 +++ mencoder.c 22 Jul 2005 17:11:39 -0000 1.300 @@ -27,7 +27,9 @@ #include "config.h" #ifdef __MINGW32__ +#define SIGHUP 1 #define SIGQUIT 3 +#define SIGPIPE 13 #endif #ifdef WIN32 #include @@ -936,6 +938,8 @@ 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.