[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gnugo-devel] GTP sometimes fails
From: |
Darren Cook |
Subject: |
Re: [gnugo-devel] GTP sometimes fails |
Date: |
Sun, 20 Mar 2005 09:15:23 +0900 |
User-agent: |
Mozilla Thunderbird 1.0 (X11/20041206) |
> I don't know what your problem exactly is, but the "many zombies" problem
> probably comes from the fact that killing children is necessary but not
> enough.
> You need to explicitly wait for their termination (try "man 2 wait").
Adding a waitpid() call after my kill() when I disconnect did away with
the need for the usleep(1) call (and so I never needed to try using
select as Paul suggested). Strange but true.
Thanks for the help everyone,
Darren