Commit a24c6870 authored by Andrew Tridgell's avatar Andrew Tridgell

sleep for a smaller time while waiting for a process to exit

parent 60cb2f90
......@@ -32,7 +32,7 @@ wait for a process to exit, calling io_flush while waiting
void wait_process(pid_t pid, int *status)
{
while (waitpid(pid, status, WNOHANG) == 0) {
sleep(1);
msleep(20);
io_flush();
}
*status = WEXITSTATUS(*status);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment