Skip to content

Commit

Permalink
reproc: Fix reproc_wait not returning REPROC_ETIMEDOUT on POSIX.
Browse files Browse the repository at this point in the history
  • Loading branch information
DaanDeMeyer committed Jan 6, 2020
1 parent a4082b0 commit c46122e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions reproc/src/posix/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,10 @@ int process_wait(pid_t process, int timeout)
status = parse_status(status);
}

if (r == 0) {
r = -ETIMEDOUT;
}

return error_unify_or_else(r, status);
}

Expand Down

0 comments on commit c46122e

Please sign in to comment.