]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
sleep for a smaller time while waiting for a process to exit
authorAndrew Tridgell <tridge@samba.org>
Sat, 19 Aug 2000 12:53:24 +0000 (12:53 +0000)
committerAndrew Tridgell <tridge@samba.org>
Sat, 19 Aug 2000 12:53:24 +0000 (12:53 +0000)
main.c

diff --git a/main.c b/main.c
index 4bd721c76cdd277bcea27e6ad7b6993ba4e5fa02..06c5e9b20c8abebea1b21084afbb5779cf29c2b8 100644 (file)
--- 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);