mirror of
https://github.com/mpv-player/mpv
synced 2025-01-15 03:23:23 +00:00
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
This commit is contained in:
parent
d07c2b27c0
commit
3c7c21274c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user