From: Ben Gras Date: Thu, 1 Sep 2005 09:29:26 +0000 (+0000) Subject: Use a usleep() loop instead of sleep(1) until the second has passed if X-Git-Tag: v3.1.0~217 X-Git-Url: http://zhaoyanbai.com/repos/%22https:/www.google.com/jsapi/static/gitweb.css?a=commitdiff_plain;h=dc55ba447dabaabd5e3db918d5b1f86eae384470;p=minix.git Use a usleep() loop instead of sleep(1) until the second has passed if necessary. --- diff --git a/commands/make/make.c b/commands/make/make.c index 6be6c1d3c..dde76300f 100755 --- a/commands/make/make.c +++ b/commands/make/make.c @@ -567,10 +567,9 @@ int level; while (time(&now) == np->n_time) { /* Time of target is equal to the current time. This bothers us, because * we can't tell if it needs to be updated if we update a file it depends - * on within a second. So wait a second. (A per-second timer is too - * coarse for today's fast machines.) + * on within a second. So wait until the second is over. */ - sleep(1); + usleep(10000); } if (rules) {