[MPlayer-cvslog] CVS: main mplayer.c, 1.855, 1.856 mencoder.c, 1.299, 1.300
Reimar Döffinger CVS
syncmail at mplayerhq.hu
Fri Jul 22 19:11:42 CEST 2005
CVS change done by Reimar Döffinger CVS
Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv8107
Modified Files:
mplayer.c mencoder.c
Log Message:
define SIGHUP and SIGPIPE for MinGW and catch SIGPIPE also in mplayer
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.299
retrieving revision 1.300
diff -u -r1.299 -r1.300
--- mencoder.c 18 Jul 2005 19:59:03 -0000 1.299
+++ 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 <windows.h>
More information about the MPlayer-cvslog
mailing list