From: Andrew Tridgell Date: Sat, 19 Aug 2000 12:53:24 +0000 (+0000) Subject: sleep for a smaller time while waiting for a process to exit X-Git-Tag: v2.4.5~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a24c687094ca7da998065c33365f6ba1168cb44d;p=thirdparty%2Frsync.git sleep for a smaller time while waiting for a process to exit --- diff --git a/main.c b/main.c index 4bd721c7..06c5e9b2 100644 --- a/main.c +++ b/main.c @@ -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);