delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/08/16/06:18:54

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,HK_OBFDOM
X-Spam-Check-By: sourceware.org
Message-ID: <4A87DCF6.5050504@alice.it>
Date: Sun, 16 Aug 2009 12:18:30 +0200
From: Angelo Graziosi <angelo DOT graziosi AT alice DOT it>
User-Agent: Thunderbird 2.0.0.22 (Windows/20090605)
MIME-Version: 1.0
To: Cygwin <cygwin AT cygwin DOT com>
CC: karl AT sipxx DOT com
Subject: Re: Cygwin1.dll 1.7.0-5x: RSYNC failures in close() system call on pipe file descriptors
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

For the sake of completeness...

I wrote:

> May you give some more details? For example, should I rebuild under
> Cygwin-1.5 or 1.7? with cygport (but which uses rsync, sigh!)? which
> patch to apply?...

I have rebuilt rsync-3.05 both on Cygwin-1.5 and 1.7 applying this patch:

--- util.c.orig 2008-11-15 23:17:49.000000000 +0100
+++ util.c      2009-08-16 03:07:20.390625000 +0200
@@ -78,11 +78,7 @@
  {
         int ret;

-#ifdef HAVE_SOCKETPAIR
-       ret = socketpair(AF_UNIX, SOCK_STREAM, 0, fd);
-#else
         ret = pipe(fd);
-#endif

         if (ret == 0) {
                 set_nonblocking(fd[0]);

Using the resulting binaries on Cygwin-1.7, there is a little step
forward. Now

$ ./rsync -av downloads /tmp

works, but

./rsync -av --delete --exclude=.svn tug.org::tldevsrc/Build/source/ 
/tmp/tl-src

does NOT! :-(


Cheers,
    Angelo.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019