[MPlayer-users] Slave Command "run" doesn't reap forks

Nicolas George george at nsup.org
Wed Apr 15 10:00:31 CEST 2015

Le quintidi 25 germinal, an CCXXIII, Reimar Döffinger a écrit :
> I suspect we should periodically (or at least at the next run command) try
> to get rid of all zombies though.

There is already this in the code:

#ifndef __MINGW32__
    signal(SIGCHLD, child_sighandler);

#ifndef __MINGW32__
static void child_sighandler(int x)
    pid_t pid;
    do {
        pid = waitpid(-1, NULL, WNOHANG);
    } while (pid > 0);

So zombies should be reaped.

(As a side note, setting SIGCHLD to SIG_IGN would have the same effect.)


  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20150415/543807b5/attachment.asc>

More information about the MPlayer-users mailing list