From 2523ab1027ba3f859331e8f1fe39dd3b82ece15e Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Wed, 25 Nov 2015 22:44:22 +0000 Subject: typo: should be looking pid == -1 --- usr.sbin/vmd/vmd.c | 4 ++-- 1 file 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 @@ -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; } } -- cgit v1.2.3