Revert r257248 and fix the problem in a way that doesn't violate style(9).
Suggested by: jmg
This commit is contained in:
parent
7ec78b8068
commit
bb1072d7ef
@ -52,6 +52,6 @@ struct proc_handle {
|
||||
#define DPRINTF(...) warn(__VA_ARGS__)
|
||||
#define DPRINTFX(...) warnx(__VA_ARGS__)
|
||||
#else
|
||||
#define DPRINTF(...)
|
||||
#define DPRINTFX(...)
|
||||
#define DPRINTF(...) do { } while (0)
|
||||
#define DPRINTFX(...) do { } while (0)
|
||||
#endif
|
||||
|
@ -145,9 +145,8 @@ proc_wstatus(struct proc_handle *phdl)
|
||||
if (phdl == NULL)
|
||||
return (-1);
|
||||
if (waitpid(phdl->pid, &status, WUNTRACED) < 0) {
|
||||
if (errno != EINTR) {
|
||||
if (errno != EINTR)
|
||||
DPRINTF("waitpid");
|
||||
}
|
||||
return (-1);
|
||||
}
|
||||
if (WIFSTOPPED(status))
|
||||
|
Loading…
x
Reference in New Issue
Block a user