• Oliver Giles's avatar
    Ignore ECHILD in UnixEventPort::ChildSet::checkExits · 4c2796b0
    Oliver Giles authored
    If no child process has changed state, waitpid() returns zero. But if there
    are no more child processes at all, it returns -1 and sets errno to ECHILD.
    Since checkExits calls waitpid() in a loop, it must ignore ECHILD.
    
    +Unit test modified to exhibit the unexpected behaviour.
    4c2796b0
async-unix-test.c++ 21.1 KB