man 2 wait: The Single Unix Specification describes a flag SA_NOCLDWAIT (not sup-ported under Linux) such that if either this flag is set, or the action for SIGCHLD is set to SIG_IGN then children that exit do not become zombies and a call to wait() or waitpid() will block until all children have exited, and then fail with errno set to ECHILD.
Comments 1
The Single Unix Specification describes a flag SA_NOCLDWAIT (not sup-ported under Linux) such that if either this flag is set, or the action for SIGCHLD is set to SIG_IGN then children that exit do not become zombies and a call to wait() or waitpid() will block until all children have exited, and then fail with errno set to ECHILD.
Reply
Leave a comment