summaryrefslogtreecommitdiff
path: root/usr.sbin/vmd/vmd.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2015-11-25 22:44:22 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2015-11-25 22:44:22 +0000
commit2523ab1027ba3f859331e8f1fe39dd3b82ece15e (patch)
tree19abc416a1d2fb37e34e7af6d999241c604aa604 /usr.sbin/vmd/vmd.c
parent93b05e56bf5a7b7959d7e4f538161abbcb69db4f (diff)
typo: should be looking pid == -1
Diffstat (limited to 'usr.sbin/vmd/vmd.c')
-rw-r--r--usr.sbin/vmd/vmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/vmd/vmd.c b/usr.sbin/vmd/vmd.c
index bfaebf874a9..53feaf1ceab 100644
--- a/usr.sbin/vmd/vmd.c
+++ b/usr.sbin/vmd/vmd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmd.c,v 1.6 2015/11/23 21:07:29 reyk Exp $ */
+/* $OpenBSD: vmd.c,v 1.7 2015/11/25 22:44:21 tedu Exp $ */
/*
* Copyright (c) 2015 Mike Larkin <mlarkin@openbsd.org>
@@ -173,7 +173,7 @@ sighdlr(int sig)
case SIGCHLD:
do {
pid = waitpid(WAIT_ANY, NULL, WNOHANG);
- } while(pid != -1 || (pid != -1 && errno == EINTR));
+ } while (pid != -1 || (pid == -1 && errno == EINTR));
break;
}
}