From what I've read the default behavior for wait
/waitpid
is to wait for a state change in a process. What I can't find is the expected behavior of two processes waitpid
using the same pid_t
argument.
Do both return and continue execution, or is it a race condition where only one notices the state change?