[Mplayer-cvslog] CVS: main mplayer.c,1.788,1.789
Sascha Sommer CVS
syncmail at mplayerhq.hu
Sun Sep 19 20:45:13 CEST 2004
CVS change done by Sascha Sommer CVS
Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv28144
Modified Files:
mplayer.c
Log Message:
handle sigchld in mplayer.c
Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.788
retrieving revision 1.789
diff -u -r1.788 -r1.789
--- mplayer.c 17 Sep 2004 02:28:44 -0000 1.788
+++ mplayer.c 19 Sep 2004 18:45:10 -0000 1.789
@@ -489,6 +489,13 @@
exit_player_with_rc(how, 1);
}
+#ifndef __MINGW32__
+static void child_sighandler(int x){
+ pid_t pid;
+ while((pid=waitpid(-1,NULL,WNOHANG)) > 0);
+}
+#endif
+
static void exit_sighandler(int x){
static int sig_count=0;
++sig_count;
@@ -1148,7 +1155,10 @@
}
#endif
-
+ /// Catch signals
+#ifndef __MINGW32__
+ signal(SIGCHLD,child_sighandler);
+#endif
//========= Catch terminate signals: ================
// terminate requests:
More information about the MPlayer-cvslog
mailing list