Mercurial > mplayer.hg
changeset 4893:904cc3813582
Added waitpid in free_stream to avoid zombies
author | albeu |
---|---|
date | Thu, 28 Feb 2002 13:50:09 +0000 |
parents | 35dd38bbd7f3 |
children | abe1a2edb422 |
files | libmpdemux/stream.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/stream.c Thu Feb 28 13:49:04 2002 +0000 +++ b/libmpdemux/stream.c Thu Feb 28 13:50:09 2002 +0000 @@ -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); }