summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}
}