[MPlayer-cygwin] no SIGHUP and SIGPIPE in mingw
Goodwu
younggoodwu at yahoo.com.cn
Thu Jul 21 20:20:11 CEST 2005
In recent revision 1.299 of mencoder.c, SIGHUP and SIGPIPE signal handling was added.
But there's no SIGHUP and SIGPIPE defined in mingw.
So the following patch should be applied.
Index: mencoder.c
===================================================================
RCS file: /cvsroot/mplayer/main/mencoder.c,v
retrieving revision 1.299
diff -u -r1.299 mencoder.c
--- mencoder.c 18 Jul 2005 19:59:03 -0000 1.299
+++ mencoder.c 22 Jul 2005 00:44:03 -0000
@@ -936,8 +936,10 @@
signal(SIGINT,exit_sighandler); // Interrupt from keyboard
signal(SIGQUIT,exit_sighandler); // Quit from keyboard
signal(SIGTERM,exit_sighandler); // kill
+#ifndef __MINGW32__
signal(SIGHUP,exit_sighandler); // broken terminal line
signal(SIGPIPE,exit_sighandler); // broken pipe
+#endif
timer_start=GetTimerMS();
} // if (!curfile) // if this was the first file.
Goodwu
younggoodwu at yahoo.com.cn
2005-07-22
More information about the MPlayer-cygwin
mailing list