diff options
| author | tgoodwin <tgoodwin> | 1998-02-19 13:27:48 +0000 |
|---|---|---|
| committer | Toby Goodwin <toby@paccrat.org> | 2015-05-16 21:23:04 +0100 |
| commit | 9a73d57745c20ce30e630a2200885e1f0b023a64 (patch) | |
| tree | 65fa945f25e39e21075d060270c8639ec7c4c54d /wait.c | |
| parent | 047445c483a321852b4e595ef47a1dc84aaef617 (diff) | |
abandon waitforall() if rc_wait4() returns with errno == EINTR
Diffstat (limited to 'wait.c')
| -rw-r--r-- | wait.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -117,8 +117,11 @@ extern void waitforall() { pid_t pid = rc_wait4(plist->pid, &stat, FALSE); if (pid > 0) setstatus(pid, stat); - else + else { set(FALSE); + if (errno == EINTR) + return; + } sigchk(); } } |