mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-23 13:41:27 +00:00
The argument to sleep() would get "promoted" to an integer with value zero.
- sleep(0.1); + usleep(100*1000); Signed-off-by: David Butterfield <dab21774@gmail.com> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7107 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -195,7 +195,7 @@ int wait_until_finished(pid_t pid, unsigned long deadline, int *status, int chil
|
||||
}
|
||||
break;
|
||||
}
|
||||
sleep(0.1);
|
||||
usleep(100*1000);
|
||||
time(&end);
|
||||
elapsed = difftime(end, start);
|
||||
} while (elapsed < deadline);
|
||||
|
||||
Reference in New Issue
Block a user