Oops, fix logic for previous commit
This commit is contained in:
parent
7a8dd9fee0
commit
a85a54896e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=28201
@ -69,9 +69,9 @@ usleep(useconds)
|
||||
do {
|
||||
(void)nanosleep(&time_to_sleep, &time_remaining);
|
||||
time_to_sleep = time_remaining;
|
||||
} while (!errno || errno == EINTR ||
|
||||
time_to_sleep.tv_sec != 0 ||
|
||||
time_to_sleep.tv_nsec != 0);
|
||||
} while ((!errno || errno == EINTR) &&
|
||||
(time_to_sleep.tv_sec != 0 ||
|
||||
time_to_sleep.tv_nsec != 0));
|
||||
}
|
||||
#else
|
||||
struct timespec time_to_sleep;
|
||||
@ -122,8 +122,8 @@ usleep(useconds)
|
||||
&omask);
|
||||
time_to_sleep = time_remaining;
|
||||
} while (!alarm_termination &&
|
||||
(!errno || errno == EINTR ||
|
||||
time_to_sleep.tv_sec != 0 ||
|
||||
(!errno || errno == EINTR) &&
|
||||
(time_to_sleep.tv_sec != 0 ||
|
||||
time_to_sleep.tv_nsec != 0));
|
||||
|
||||
if (!alarm_blocked) {
|
||||
|
Loading…
Reference in New Issue
Block a user