Fix the build with gcc.
This commit is contained in:
parent
1ce5620d32
commit
2e14fd4313
@ -145,8 +145,9 @@ proc_wstatus(struct proc_handle *phdl)
|
|||||||
if (phdl == NULL)
|
if (phdl == NULL)
|
||||||
return (-1);
|
return (-1);
|
||||||
if (waitpid(phdl->pid, &status, WUNTRACED) < 0) {
|
if (waitpid(phdl->pid, &status, WUNTRACED) < 0) {
|
||||||
if (errno != EINTR)
|
if (errno != EINTR) {
|
||||||
DPRINTF("waitpid");
|
DPRINTF("waitpid");
|
||||||
|
}
|
||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
if (WIFSTOPPED(status))
|
if (WIFSTOPPED(status))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user