summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c2
1 files changed, 2 insertions, 0 deletions
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