diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-07-22 17:11:39 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-07-22 17:11:39 +0000 |
commit | 3c7c21274c3e0f1aef56ebf8ab79d331a854a4eb (patch) | |
tree | db3b0ff26dd3858634c10985010168b5c0b8a94c | |
parent | d07c2b27c0a50214b72ef5c7bdc5e8ce226a2e27 (diff) |
define SIGHUP and SIGPIPE for MinGW and catch SIGPIPE also in mplayer
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16050 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | mencoder.c | 2 | ||||
-rw-r--r-- | mplayer.c | 2 |
2 files changed, 4 insertions, 0 deletions
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 <windows.h> @@ -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 |