summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorDavid Dykstra <dwd@samba.org>2003-01-28 02:51:03 +0000
committerDavid Dykstra <dwd@samba.org>2003-01-28 02:51:03 +0000
commit8ed16deb249535905b947496290e19344e93ea41 (patch)
tree29e9363fa3956e4af8cb8a45d5eb62ee84787273 /main.c
parenta577af90678fa1b7b8b56666d6587fd7d6f145fe (diff)
downloadrsync-8ed16deb249535905b947496290e19344e93ea41.tar.gz
rsync-8ed16deb249535905b947496290e19344e93ea41.tar.bz2
rsync-8ed16deb249535905b947496290e19344e93ea41.zip
Change so the delay before generator signals receiver is only done on Cygwin.
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.c b/main.c
index 53a237ca..f61ead43 100644
--- a/main.c
+++ b/main.c
@@ -462,9 +462,11 @@ static int do_recv(int f_in,int f_out,struct file_list *flist,char *local_name)
io_flush();
io_set_error_fd(-1);
+#ifdef DELAY_BEFORE_SIGNALING_RECEIVER
/* workaround for cygwin hangs; wait to make sure child is ready */
msleep(100);
kill(pid, SIGUSR2);
+#endif
wait_process(pid, &status);
return status;
}