summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2013-12-25 14:20:52 -0800
committerWayne Davison <wayned@samba.org>2013-12-25 14:20:53 -0800
commit9e2e7a1b2d921a56cbf8f8a76d6fdc12af8d07f8 (patch)
treebfc7a2550c0d5f45d372a66db090a2271424e2a4
parentd34eaa8183296e3fda0d609e8cefd2c2f3d1ef9d (diff)
downloadrsync-9e2e7a1b2d921a56cbf8f8a76d6fdc12af8d07f8.tar.gz
Restoring use of socketpair on cygwin.
Use of socketpair is much faster on cygwin, and some folks report fewer hangs using the modern socketpair implementation vs pipes.
-rw-r--r--configure.ac4
1 files changed, 0 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index 99a2dab1..f66e5ef8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -739,11 +739,7 @@ AC_TRY_RUN([
main() {
int fd[2];
-#ifdef __CYGWIN__
- exit(1);
-#else
exit((socketpair(AF_UNIX, SOCK_STREAM, 0, fd) != -1) ? 0 : 1);
-#endif
}],
rsync_cv_HAVE_SOCKETPAIR=yes,rsync_cv_HAVE_SOCKETPAIR=no,rsync_cv_HAVE_SOCKETPAIR=cross)])
if test x"$rsync_cv_HAVE_SOCKETPAIR" = x"yes"; then