]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
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 1a93c735fe1f1ae8cc41d5a4fe7f62190682bf1b..4f04b2a570e4095418e82792a1b4cde96cb05786 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 d01bea7645bae9a481ce7bb68e5bd5364d255dfe..6b19c9f183ab844d22098ce1b024160445ca0dd5 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 c2681e616a984db1acf91c064e846d7bd0f5d796..b571b3a8d1086e87870e476fb4830968e2d99ec8 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;