This is the mail archive of the
cygwin-developers
mailing list for the Cygwin project.
Re: 1.7.5: Occasional failure of CreatePipe or signal handing due to thread-unsafe code in cwdstuff::set
- From: Christopher Faylor <cgf-use-the-mailinglist-please at cygwin dot com>
- To: cygwin-developers at cygwin dot com
- Date: Wed, 11 Aug 2010 10:57:42 -0400
- Subject: Re: 1.7.5: Occasional failure of CreatePipe or signal handing due to thread-unsafe code in cwdstuff::set
- References: <3C031C390CBF1E4A8CE1F74DE7ECAF3A140684F0AA@MBX8.EXCHPROD.USA.NET> <20100811084926.GC26152@calimero.vinschen.de> <20100811135528.GH14202@calimero.vinschen.de> <20100811145407.GE1943@ednor.casa.cgf.cx>
- Reply-to: cygwin-developers at cygwin dot com
On Wed, Aug 11, 2010 at 10:54:07AM -0400, Christopher Faylor wrote:
>4) Break path into convenient chunks and first change to an absolute path
>whose length is <= MAXPATHLEN and then change to relative paths whose
>lenghts are also <= MAXPATHLEN.
>
>I thought that this technique worked but maybe I'm mistaken. If it does,
>it would be a foolproof but slow way of cd'ing to a long path.
Actually, it isn't exactly foolproof because it wouldn't be thread-safe
with Windows API functions. We could make it threadsafe with cygwin
functions though.
cgf