delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/07/07/06:17:29

X-Spam-Check-By: sourceware.org
Date: Fri, 7 Jul 2006 12:17:13 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: rsync over ssh hang issue understood
Message-ID: <20060707101713.GA3288@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <005f01c6a164$37793650$a501a8c0 AT CAM DOT ARTIMI DOT COM> <44ADE056 DOT 307 AT netbauds DOT net> <ba40711f0607062238r1a30b097g3bd90e9765c20c92 AT mail DOT gmail DOT com> <44AE109E DOT 3080003 AT netbauds DOT net> <20060707075846 DOT GB11454 AT calimero DOT vinschen DOT de> <44AE221E DOT 1010107 AT netbauds DOT net>
Mime-Version: 1.0
In-Reply-To: <44AE221E.1010107@netbauds.net>
User-Agent: Mutt/1.4.2i
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Jul  7 09:58, Darryl Miles wrote:
> Corinna Vinschen wrote:
> >On Jul  7 08:43, Darryl Miles wrote:
> >>What was the reason the existing code in CVS for select.cc was disabled?
> >>
> >>Maybe it would help to better understand the reasons/cases where the 
> >>disabled code failed.
> >
> >Hangs with native Windows applications, AFAIR.
> 
> I take this to mean a CYGWIN app is on one end and a native app on the 
> other.
> 
> Remember the test case ?

I think native versions of unison uncovered the problem when
connecting with Cygwin versions of unison.  Search the archives,
there must be some discussions about this.

> When it hangs can you remember who was reading and who was writing.

Sorry, no.  Should be in the archives, though.

> In MSDN there is:
> 
> "The pipe server should not perform a blocking read operation until the 
> pipe client has started.  Otherwise, a race condition can occur.  This 
> typically occurs when initialization code, such as the C run-time, needs 
> to lock and examine inherited handles."
> 
> Could this be related ?  Does anyone on the list know the background of 
> the statement, it sounds like a Windows documented bug/feature.

Check out pipe.cc.  The CreateNamedPipe call creating the server side is
the reader, the client is the writer.  Since the CreateNamedPipe/
CreateFile is done in one go, I don't see how that could be the problem.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

- Raw text -


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