Just came across a really thorny problem with our implementation of
qmail-queue.
Basic summary is that we have a potential race condition between calls
to waitpid() in the parent process and in qmail-queue. If the parent
process' waitpid(-1) call enters before the child processes
waitpid($child) does then the parent ends up collecting the zombie, and
the child never sees the qmail-queue exiting, and thus hangs
indefinitely.
Anyone have any thoughts on how to solve this? Can you tell waitpid()
to only operate on child processes and not grandchild processes?
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________