tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
wait(2) and SIGCHLD
I'm confused regarding the behaviour of wait(2) wrt. SIGCHLD handling.
The wait(2) manpage says:
wait() will fail and return immediately if:
[ECHILD] The calling process has no existing unwaited-for child
processes; or no status from the terminated child
process is available because the calling process has
asked the system to discard such status by ignoring
the signal SIGCHLD or setting the flag SA_NOCLDWAIT
for that signal.
However, ignore is the default handler for SIGCHLD.
So does the
because the calling process has asked the system
to discard such status by ignoring the signal SIGCHLD
mean that explicitly ignoring SIGCHLD is different from ignoring it per default?
Home |
Main Index |
Thread Index |
Old Index