This is the mail archive of the cygwin-developers mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 1.7.5: Occasional failure of CreatePipe or signal handing due to thread-unsafe code in cwdstuff::set


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]