From dc55ba447dabaabd5e3db918d5b1f86eae384470 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Thu, 1 Sep 2005 09:29:26 +0000 Subject: [PATCH] Use a usleep() loop instead of sleep(1) until the second has passed if necessary. --- commands/make/make.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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) { -- 2.44.0