From f23c77978f8651021f11754e365d95d60ef7d945 Mon Sep 17 00:00:00 2001 From: ross Date: Mon, 10 Feb 2003 09:10:01 +0000 Subject: Fix a race that can abort a sysinst run. Closes bin/20275, thank you Takao Shinohara: good analysis. This program appeared less than 3 weeks ago and it has already been pulled up to 1.6.1? At the last minute? And with serious bugs? ISTM that the release branch isn't supposed to work that way. It isn't stable, it had 4 patches in 2 days, and has averaged a patch every 4 days during its short lifetime. --- progress.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/progress.c b/progress.c index f5422de..c9bd42b 100644 --- a/progress.c +++ b/progress.c @@ -1,4 +1,4 @@ -/* $NetBSD: progress.c,v 1.5 2003/01/22 10:44:17 agc Exp $ */ +/* $NetBSD: progress.c,v 1.6 2003/02/10 09:10:01 ross Exp $ */ /*- * Copyright (c) 2003 The NetBSD Foundation, Inc. @@ -34,7 +34,7 @@ #include #ifndef lint -__RCSID("$NetBSD: progress.c,v 1.5 2003/01/22 10:44:17 agc Exp $"); +__RCSID("$NetBSD: progress.c,v 1.6 2003/02/10 09:10:01 ross Exp $"); #endif /* not lint */ #include @@ -211,7 +211,8 @@ main(int argc, char *argv[]) (unsigned) nr); close(outpipe[1]); - wait(&waitstat); + while(wait(&waitstat) != -1) + continue; progressmeter(1); return 0; -- cgit v1.2.3-56-ge451