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

Christopher Faylor cgf-use-the-mailinglist-please@cygwin.com
Wed Aug 11 14:57:00 GMT 2010


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



More information about the Cygwin-developers mailing list