X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-6.8 required=5.0	tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4C6BDD79.5050307@redhat.com>
Date: Wed, 18 Aug 2010 07:17:45 -0600
From: Eric Blake <eblake@redhat.com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.7) Gecko/20100720 Fedora/3.1.1-1.fc13 Lightning/1.0b2pre Mnenhy/0.8.3 Thunderbird/3.1.1
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: cygwin 1.7 lock directory problem
References: <AANLkTin6rup-PmQj2yCXgEBUajHhQ_J73UstwmLht-sa@mail.gmail.com> <4C6B5191.7070602@cygwin.com> <AANLkTin8J=k9bbw7q8LTD4S7+XdT61W5fuShYdgbzf4j@mail.gmail.com> <20100818055204.GA19288@ednor.casa.cgf.cx> <20100818085754.GP11340@calimero.vinschen.de> <445852471.20100818142802@mtu-net.ru> <20100818110852.GS11340@calimero.vinschen.de>
In-Reply-To: <20100818110852.GS11340@calimero.vinschen.de>
Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig21A26680E5025638711F4861"
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

--------------enig21A26680E5025638711F4861
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

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.
>=20
> 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).

--=20
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org


--------------enig21A26680E5025638711F4861
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJMa915AAoJEKeha0olJ0NqMe0H/3avgCAgcEplX16wh/tilbWS
ukfdqyl/hxBJYmM7XxN6End/oP9e++IhHayoITCCvmAap5XYBjdLA5Y2N/DZ44IR
JMKb5tYpCXfJt0B0Tk5CbKlVz8Gh5/AISOQppHfYD1WLwUgcGT9gfXynkaVpO3to
0V9Had4dRIlkINVrzYMYmfT6l5HChEDZ873ifCBc7AFOgAJx2eFfXIqvdRZgN9US
oyfJX4MPR89q0bC7i2ZhVK3mc3p9G9O9K45ourk09i70LRBjAwwWebs0IQzNA2KQ
p7rVw43C5m5vgcHW6DHM+EfpLrgPDT6Xp1/pXcUN+6VKnJPTs0YAmvxtGBsjAps=
=E5M6
-----END PGP SIGNATURE-----

--------------enig21A26680E5025638711F4861--
