diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-04-09 02:32:57 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-04-09 02:32:57 +0000 |
commit | 4a7481889c3841a7903ae7dfa51f8d1995266f25 (patch) | |
tree | 517b2e2f3fa7ea2ed4d9981c6f0214cbd95be778 /main.c | |
parent | 0adb99b9dcbc5f5dbb0ee0ffb95df8b3710fcc22 (diff) | |
download | rsync-4a7481889c3841a7903ae7dfa51f8d1995266f25.tar.gz |
use 1 second sleeps in the sleep loop as some OSes (NT for example)
don't get interrupted during a sleep.
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -324,9 +324,10 @@ static int do_recv(int f_in,int f_out,struct file_list *flist,char *local_name) write_int(recv_pipe[1],1); close(recv_pipe[1]); io_flush(); - /* finally we go to sleep until our parent kills us with - a USR2 signal */ - while (1) sleep(60); + /* finally we go to sleep until our parent kills us + with a USR2 signal. We sleepp for a short time as on + some OSes a signal won't interrupt a sleep! */ + while (1) sleep(1); } close(recv_pipe[1]); |