X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=3.3 required=5.0	tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT
X-Spam-Check-By: sourceware.org
Date: Wed, 18 Aug 2010 14:28:02 +0400
From: Andrey Repin <anrdaemon@freemail.ru>
Reply-To: Andrey Repin <cygwin@cygwin.com>
Message-ID: <445852471.20100818142802@mtu-net.ru>
To: Corinna Vinschen <corinna-cygwin@cygwin.com>, cygwin@cygwin.com
Subject: Re: cygwin 1.7 lock directory problem
In-Reply-To: <20100818085754.GP11340@calimero.vinschen.de>
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>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@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

Greetings, Corinna Vinschen!

>> >>Do you have a series of steps that produces the problem you see?
>> >>
>> >
>> >As I said in previous mail.
>> >1. cd /cygdriver/i    ( I is mounted as a usb-stick)
>> >2.  cd /proc 3.  Use some tools such as Unlocker to check driver I,
>> >Unlocker said driver I is locked by bash.
>> >4. cd /          ( / is at d:\cygwin )
>> >5.  do the same as step 3, driver is not locked by bash.
>> 
>> That's how Cygwin 1.7.5 would work.  I would expect different behavior
>> for 1.7.6.

> No, that's also how 1.7.6 works.  I documented this behaviour in
> path.cc:

>   /* Note that we don't set the dir handle to NULL for virtual paths.
>      The handle is used to generate a stackdump file.  Since we can't
>      create a stackdump in a virtual path, we have at least *some*
>      directory handle to generate the stackdump in.

>      However, note that we have to make sure that we don't use the handle
>      wrongly as soon as we start to use it in other cases as well. */

> 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.


--
WBR,
 Andrey Repin (anrdaemon@freemail.ru) 18.08.2010, <14:27>

Sorry for my terrible english...


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

