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 12 August 2010 17:17, Corinna Vinschen wrote:
> On Aug 12 18:07, Corinna Vinschen wrote:
>> On Aug 12 11:51, Christopher Faylor wrote:
>> > On XP, at least, we could set the current directory to '//?/PIPE'.
>> > That causes CreateFile to fail. ÂI used the program below to test
>> > that.
>> >
>> > Â sh-3.2$ ./setdir '//?/PIPE'
>> > Â SetCurrentDirectory succeeded
>> > Â CreateFile failed, 123
>> >
>> > I'll try that on other systems to see if it still behaves predictably.
>>
>> Works fine on W7 if you specify \\?\PIPE\, with the trailing backslash.
>> Without trailing backslash it fails:
>>
>> Â$ ./setdir '\\?\PIPE'
>> ÂSetCurrentDirectory faile, 123
>>
>> Â$ ./setdir '\\?\PIPE\'
>> ÂCreateFile failed, 2
>>
>> That sounds like a neat solution. ÂI would never have expected that
>> SetCurrentDirectory works for the pipe FS.
>
> Just checked on Win2K and XP. ÂWhen using a traling (back)slash,
> the behaviour is identical to Win7. ÂThat's promising.

Yay, good stuff.

Andy


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