snapshot 20050114 race (on list)

Christopher Faylor me@cgf.cx
Fri Jan 28 05:55:00 GMT 2005


On Thu, Jan 27, 2005 at 10:29:11PM -0500, Pierre A. Humblet wrote:
>At 06:42 PM 1/22/2005 -0500, Christopher Faylor wrote:
>>
>>As it turns out, my concerns were somewhat overblown because you just
>>have to make sure that you reset current directory while you still are
>>in possession of the write pipe.  That's no problem, as it turns out.
>
>Looks good. On NT, ChangeCurrentDirectory needs x access to the destination,
>so the current scheme may fail. Could try other things such as $TEMP, but
>that's not perfect either ... I wish there was a way to close that cwd handle.
>
>Also, is there always a C: drive? One could use "\\" instead of "C:\\" and
>let Windows decide, but this may magnify the access right issue.

Except there is no guarantee that you aren't on a junction point (or whatever
it's called) and cd'ing there might still keep a directory active.

cgf



More information about the Cygwin-developers mailing list