[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [screen-devel] [PATCH for screen-v4] Fix screen leaving zombie proce
Re: [screen-devel] [PATCH for screen-v4] Fix screen leaving zombie processes
Wed, 6 Nov 2019 21:11:08 +0100
On Wed, 6 Nov 2019 15:12:41 +0100
Václav Doležal <address@hidden> wrote:
> I think this is bad solution. If some process deliberately closes stdout and
> stderr, screen will block until that process exits.
> I am wondering why the zombies show up at all. They were reaped correctly on
> my test process (code below). I guess there is some race with SIGCHLD handler.
Right that makes sense, looking at how SIGCHLD is handled, seems like
we only tell it to wait for one child, so if it is slow system, a lot
of childs can stop, but it may only wait for one of them:
seems, like this line should have += instead of =
Axel, can you try changing above line instead?