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.
-/* $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.
#include <sys/cdefs.h>
#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 <sys/types.h>
(unsigned) nr);
close(outpipe[1]);
- wait(&waitstat);
+ while(wait(&waitstat) != -1)
+ continue;
progressmeter(1);
return 0;