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
On Aug 11 10:57, Christopher Faylor wrote:
> 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.
The problem is that it won't work. The CWD restriction to a path of 259
chars is an absolute one.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat