Remove the Cygwin msleep(100) before the generator kills the receiver,
authorDavid Dykstra <dwd@samba.org>
Tue, 28 Jan 2003 05:05:53 +0000 (05:05 +0000)
committerDavid Dykstra <dwd@samba.org>
Tue, 28 Jan 2003 05:05:53 +0000 (05:05 +0000)
because it caused the testsuite/unsafe-links test to hang.

NEWS
configure.in
main.c

diff --git a/NEWS b/NEWS
index 1a93c73..4f04b2a 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -72,8 +72,6 @@ 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 
index d01bea7..6b19c9f 100644 (file)
@@ -256,15 +256,6 @@ case $host_os in
               * ) AC_MSG_RESULT(no);;
 esac
 
-AC_MSG_CHECKING([whether generator should delay before signaling receiver])
-case $host_os in
-       *cygwin* ) AC_MSG_RESULT(yes)
-                   AC_DEFINE(DELAY_BEFORE_SIGNALING_RECEIVER, 1, 
-                           [Define if generator should delay before signaling receiver])
-                  ;;
-              * ) AC_MSG_RESULT(no);;
-esac
-
 AC_C_BIGENDIAN
 AC_HEADER_DIRENT
 AC_HEADER_TIME
diff --git a/main.c b/main.c
index c2681e6..b571b3a 100644 (file)
--- a/main.c
+++ b/main.c
@@ -462,10 +462,6 @@ 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); 
-#endif
        kill(pid, SIGUSR2);
        wait_process(pid, &status);
        return status;