From 7d085960ebf15e6a34e8cf49b47b1f09563a702b Mon Sep 17 00:00:00 2001 From: David Dykstra Date: Tue, 28 Jan 2003 05:05:53 +0000 Subject: [PATCH] Remove the Cygwin msleep(100) before the generator kills the receiver, because it caused the testsuite/unsafe-links test to hang. --- NEWS | 2 -- configure.in | 9 --------- main.c | 4 ---- 3 files changed, 15 deletions(-) diff --git a/NEWS b/NEWS index 1a93c735..4f04b2a5 100644 --- 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 diff --git a/configure.in b/configure.in index d01bea76..6b19c9f1 100644 --- a/configure.in +++ b/configure.in @@ -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 c2681e61..b571b3a8 100644 --- 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; -- 2.34.1