summaryrefslogtreecommitdiffstats
path: root/sbin/vinum/v.c
diff options
context:
space:
mode:
authorgrog <grog@FreeBSD.org>1999-03-28 08:51:29 +0000
committergrog <grog@FreeBSD.org>1999-03-28 08:51:29 +0000
commit0db5fed97f37da57c896bd3cdeaf8d433a1ea63d (patch)
tree787e5f73b9834f3fa0b8c9bb214aafb2ae3c66a7 /sbin/vinum/v.c
parent08adea2ee5cc02715a3d01ed8c8b680f7ea45c18 (diff)
downloadFreeBSD-src-0db5fed97f37da57c896bd3cdeaf8d433a1ea63d.zip
FreeBSD-src-0db5fed97f37da57c896bd3cdeaf8d433a1ea63d.tar.gz
main (): Don't loop waiting for children to finish.
Diffstat (limited to 'sbin/vinum/v.c')
-rw-r--r--sbin/vinum/v.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/vinum/v.c b/sbin/vinum/v.c
index a5b37a0..772d431 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 <ctype.h>
#include <errno.h>
@@ -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)) {
OpenPOWER on IntegriCloud