git.samba.org
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d34eaa8
)
Restoring use of socketpair on cygwin.
author
Wayne Davison
<wayned@samba.org>
Wed, 25 Dec 2013 22:20:52 +0000
(14:20 -0800)
committer
Wayne 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
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index 99a2dab18958bfda06cd0960153f5b3992bdbdf4..f66e5ef86ba88122c0a13ac3a13592588fa9a14e 100644
(file)
--- 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