diff --git a/mencoder.c b/mencoder.c index 6844c3c2b5..f65e768a1b 100644 --- a/mencoder.c +++ b/mencoder.c @@ -27,7 +27,9 @@ #include "config.h" #ifdef __MINGW32__ +#define SIGHUP 1 #define SIGQUIT 3 +#define SIGPIPE 13 #endif #ifdef WIN32 #include diff --git a/mplayer.c b/mplayer.c index d50dc08593..206e1cfa46 100644 --- a/mplayer.c +++ b/mplayer.c @@ -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 @@ current_module = NULL; 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