Ignore EINTR when calling waitpid.
This commit is contained in:
parent
15dba72121
commit
320807de5e
@ -145,7 +145,8 @@ proc_wstatus(struct proc_handle *phdl)
|
||||
if (phdl == NULL)
|
||||
return (-1);
|
||||
if (waitpid(phdl->pid, &status, WUNTRACED) < 0) {
|
||||
warn("waitpid");
|
||||
if (errno != EINTR)
|
||||
warn("waitpid");
|
||||
return (-1);
|
||||
}
|
||||
if (WIFSTOPPED(status))
|
||||
|
Loading…
x
Reference in New Issue
Block a user