Fix the build with gcc.

This commit is contained in:
Mark Johnston 2013-10-28 12:42:27 +00:00
parent 1ce5620d32
commit 2e14fd4313

View File

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