From 0fea12cf0102523fb26f5cece97975e2eeffed04 Mon Sep 17 00:00:00 2001 From: Greg Lehey Date: Sun, 28 Mar 1999 08:51:29 +0000 Subject: [PATCH] main (): Don't loop waiting for children to finish. --- sbin/vinum/v.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/vinum/v.c b/sbin/vinum/v.c index a5b37a09c734..772d4311b710 100644 --- a/sbin/vinum/v.c +++ b/sbin/vinum/v.c @@ -36,7 +36,7 @@ * */ -/* $Id: v.c,v 1.24 1999/01/17 02:53:38 grog Exp grog $ */ +/* $Id: v.c,v 1.25 1999/03/21 01:18:23 grog Exp grog $ */ #include #include @@ -182,7 +182,7 @@ main(int argc, char *argv[]) setjmp(command_fail); /* come back here on catastrophic failure */ - while (wait4(-1, &childstatus, WNOHANG, NULL) >= 0); /* wait for all dead children */ + while (wait4(-1, &childstatus, WNOHANG, NULL) > 0); /* wait for all dead children */ c = readline(VINUMMOD " -> "); /* get an input */ if (c == NULL) { /* EOF or error */ if (ferror(stdin)) {