[MPlayer-users] Slave Command "run" doesn't reap forks
Amir Hassan
amir at viel-zu.org
Wed Apr 15 12:02:35 CEST 2015
On Wed, 15 Apr 2015 10:00:31 +0200, Nicolas George <george at nsup.org> wrote:
>
> There is already this in the code:
>
> #ifndef __MINGW32__
> signal(SIGCHLD, child_sighandler);
> #endif
>
> #ifndef __MINGW32__
> static void child_sighandler(int x)
> {
> pid_t pid;
> do {
> pid = waitpid(-1, NULL, WNOHANG);
> } while (pid > 0);
> }
> #endif
>
> So zombies should be reaped.
weird. with MPlayer SVN-r37386-snapshot-4.9.2 on wheezy/armv7l (BananaPi)
it definitely doesn't reap zombies. sorry, i won't find the time to
investigate more deeply because i switched to mpv for my project. anyway i
still think mplayer rocks. :)
> (As a side note, setting SIGCHLD to SIG_IGN would have the same effect.)
More information about the MPlayer-users
mailing list