Ignore EINTR when calling waitpid.

This commit is contained in:
Rui Paulo 2010-09-18 23:38:21 +00:00
parent 15dba72121
commit 320807de5e

View File

@ -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))