This is the mail archive of the cygwin 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: cygwin 1.7 lock directory problem


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   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


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