Switched usleep to nanosleep for posix complience

This commit is contained in:
Jack Reacher 2016-02-06 02:16:01 -05:00
commit 554d66c768
35 changed files with 70 additions and 47 deletions

View file

@ -3876,7 +3876,7 @@ int main(int argc, char *argv[]) {
}
}
usleep(USLEEP_LOOP);
usleepn(USLEEP_LOOP);
(void) wait3(NULL, WNOHANG, NULL);
// write restore file and report status
if (process_restore == 1 && time(NULL) - elapsed_restore > 299) {