cygwin 1.7 lock directory problem

Eric Blake
Wed Aug 18 13:18:00 GMT 2010

On 08/18/2010 05:08 AM, Corinna Vinschen wrote:
>>> Looks like this behaviour is a problem and we should better close the
>>> old handle.  What to do with the new one?  Just set it to NULL and
>>> disallow stackdumps as long as we're in a virtual path?  Or set it to
>>> some well known path, like Cygwin's root?
>> /var or /tmp would be more sensible.
> Maybe, but it also costs time.  /var and /tmp Windows paths have to be
> generated by a full path conversion every time you call chdir() to a
> virtual directory.
> The Cygwin installation path (aka the root dir) is just available.

Using / as the fallback during a virtual directory makes sense to me
(there may be other permission problems if / is not writable by the
current user, but a stack dump is a best effort attempt anyways).

Eric Blake    +1-801-349-2682
Libvirt virtualization library

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the Cygwin mailing list