X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/f0359dd00d60d72c4b3dec85de8e490692f6015c..14175f1e7700e4e800692fc2c466cbd27a60176e:/main.c diff --git a/main.c b/main.c index f7e52bed..2f422e28 100644 --- a/main.c +++ b/main.c @@ -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]);