diff options
author | David Dykstra <dwd@samba.org> | 2003-01-27 03:52:42 +0000 |
---|---|---|
committer | David Dykstra <dwd@samba.org> | 2003-01-27 03:52:42 +0000 |
commit | 787568f3719e0f80881fdf2124e11dc97c827ec4 (patch) | |
tree | 09194b3640af9c249191606d3c93831ff53f4720 | |
parent | f0019fc506808d19233aa712216c8de72bd0a2f6 (diff) | |
download | rsync-787568f3719e0f80881fdf2124e11dc97c827ec4.tar.gz |
Insert a 100ms sleep just before sending the USR2 signal to the
child receiver process to prevent some hangs on Cygwin. Anthony
Heading discovered the workaround first and suggested 30ms, and
Greger Cronquist had better luck with 100ms.
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | main.c | 2 |
2 files changed, 4 insertions, 0 deletions
@@ -75,6 +75,8 @@ rsync changes since last release * Prevent "Connection reset by peer" messages from Cygwin. (Randy O'Meara) + * Prevent some hangs at the end of a run on Cygwin. (Anthony Heading) + INTERNAL: * Many code cleanups and improved internal documentation. (Martin @@ -462,6 +462,8 @@ static int do_recv(int f_in,int f_out,struct file_list *flist,char *local_name) io_flush(); io_set_error_fd(-1); + /* workaround for cygwin hangs; wait to make sure child is ready */ + msleep(100); kill(pid, SIGUSR2); wait_process(pid, &status); return status; |