Revert r257248 and fix the problem in a way that doesn't violate style(9).
Suggested by: jmg
This commit is contained in:
parent
e2f5d9a129
commit
fb15925c14
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=257298
@ -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…
Reference in New Issue
Block a user