summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-08-19 12:53:24 +0000
committerAndrew Tridgell <tridge@samba.org>2000-08-19 12:53:24 +0000
commita24c687094ca7da998065c33365f6ba1168cb44d (patch)
treed0afd5ca09f695ca75556060527e19d71c4829cb
parent60cb2f9016f3e3eee1f2e4bbf6ff3ca1d6f60871 (diff)
downloadrsync-a24c687094ca7da998065c33365f6ba1168cb44d.tar.gz
sleep for a smaller time while waiting for a process to exit
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
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);