From: Wayne Davison Date: Wed, 25 Dec 2013 22:20:52 +0000 (-0800) Subject: Restoring use of socketpair on cygwin. X-Git-Tag: v3.1.1pre1~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e2e7a1b2d921a56cbf8f8a76d6fdc12af8d07f8;p=thirdparty%2Frsync.git 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. --- 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