Ran Benita d00714f7ce test_terminal: wait on children to avoid zombies
Unfortunately, there is no clean way I see to hook this up from the vte
object. We can (and will) have more than one vte object opened at a
time, but the semantics of signalfd make it impossible to deliver each
SIGCHLD to its rightful owner without complicating things.

[ From what I tested:
 - If you have two signalfd's listening to the same signal, they will be
   dispatched in some round-robin manner.
 - Also, if more than one child exits before we read signalfd (possibly
   beloging to different terminals), they will be compressed to one
    event. ]

We therefore need to do the reaping from a central location, and need to
remember to copy this snippet over to main.c in the future.

Signed-off-by: Ran Benita <ran234@gmail.com>
2012-01-10 03:16:54 +02:00
..
2011-12-31 16:53:54 +01:00