Commit Diff
--- lib/privsep.c +++ lib/privsep.c @@ -95,8 +95,8 @@ got_privsep_wait_for_child(pid_t pid) { int child_status; - if (waitpid(pid, &child_status, WNOHANG) == 0) - return NULL; + if (waitpid(pid, &child_status, 0) == -1) + return got_error_from_errno(); if (!WIFEXITED(child_status)) return got_error(GOT_ERR_PRIVSEP_DIED);