diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-08-19 12:53:24 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-08-19 12:53:24 +0000 |
commit | a24c687094ca7da998065c33365f6ba1168cb44d (patch) | |
tree | d0afd5ca09f695ca75556060527e19d71c4829cb | |
parent | 60cb2f9016f3e3eee1f2e4bbf6ff3ca1d6f60871 (diff) | |
download | rsync-a24c687094ca7da998065c33365f6ba1168cb44d.tar.gz |
sleep for a smaller time while waiting for a process to exit
-rw-r--r-- | main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |