Revert r257248 and fix the problem in a way that doesn't violate style(9).

Suggested by:	jmg
This commit is contained in:
Mark Johnston 2013-10-29 03:12:31 +00:00
parent e2f5d9a129
commit fb15925c14
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=257298
2 changed files with 3 additions and 4 deletions

View File

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

View File

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