Use a usleep() loop instead of sleep(1) until the second has passed if

necessary.
This commit is contained in:
Ben Gras 2005-09-01 09:29:26 +00:00
parent 1e0469ce74
commit dc55ba447d

View file

@ -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) {