[Mplayer-cvslog] CVS: main/libmpdemux stream.c,1.27,1.28

Alban Bedel CVS albeu at mplayer.dev.hu
Thu Feb 28 14:50:12 CET 2002


Update of /cvsroot/mplayer/main/libmpdemux
In directory mplayer:/var/tmp.root/cvs-serv18329/libmpdemux

Modified Files:
	stream.c 
Log Message:
Added waitpid in free_stream to avoid zombies


Index: stream.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/stream.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- stream.c	1 Feb 2002 13:45:06 -0000	1.27
+++ stream.c	28 Feb 2002 13:50:09 -0000	1.28
@@ -228,7 +228,10 @@
 
 void free_stream(stream_t *s){
   printf("\n*** free_stream() called ***\n");
-  if(s->cache_pid) kill(s->cache_pid,SIGTERM);
+  if(s->cache_pid) {
+    kill(s->cache_pid,SIGTERM);
+    waitpid(s->cache_pid,NULL,0);
+  }
   if(s->priv) free(s->priv);
   free(s);
 }




More information about the MPlayer-cvslog mailing list