summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkj <markj@FreeBSD.org>2013-10-28 12:42:27 +0000
committermarkj <markj@FreeBSD.org>2013-10-28 12:42:27 +0000
commit1da863f2b411f1138a0405549ac8bdcf550014ce (patch)
tree11181255c2e2387f1a8dd621e9cbf51577ccdffd
parent5da8adaa108ebb1c2b51af288aabc11cc1be3b57 (diff)
downloadFreeBSD-src-1da863f2b411f1138a0405549ac8bdcf550014ce.zip
FreeBSD-src-1da863f2b411f1138a0405549ac8bdcf550014ce.tar.gz
Fix the build with gcc.
-rw-r--r--lib/libproc/proc_util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libproc/proc_util.c b/lib/libproc/proc_util.c
index 1c3d522..646ee97 100644
--- a/lib/libproc/proc_util.c
+++ b/lib/libproc/proc_util.c
@@ -145,8 +145,9 @@ 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))
OpenPOWER on IntegriCloud