Restoring use of socketpair on cygwin.
authorWayne Davison <wayned@samba.org>
Wed, 25 Dec 2013 22:20:52 +0000 (14:20 -0800)
committerWayne Davison <wayned@samba.org>
Wed, 25 Dec 2013 22:20:53 +0000 (14:20 -0800)
Use of socketpair is much faster on cygwin, and some folks report fewer
hangs using the modern socketpair implementation vs pipes.

configure.ac

index 99a2dab18958bfda06cd0960153f5b3992bdbdf4..f66e5ef86ba88122c0a13ac3a13592588fa9a14e 100644 (file)
@@ -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