RE: Bug in rm -r with locked files

2003-01-23 Thread Igor Pechtchanski
On Thu, 23 Jan 2003, Randall R Schulz wrote: > Chris J., > > At 02:47 2003-01-23, Chris January wrote: > > > It's not a completely intractable problem. I think that someone (Chris > > > January?) provided a workaround at one point. "cygserver" could also > > > provide a possible solution someday

RE: Bug in rm -r with locked files

2003-01-23 Thread Randall R Schulz
Chris J., At 02:47 2003-01-23, Chris January wrote: > It's not a completely intractable problem. I think that someone (Chris > January?) provided a workaround at one point. "cygserver" could also > provide a possible solution someday. The best solution, IIRC, was to move the locked files elsew

RE: Bug in rm -r with locked files

2003-01-23 Thread Chris January
> On Tue, Jan 21, 2003 at 11:25:19AM -0800, Randall R Schulz wrote: > >Shankar, > > > >At 11:05 2003-01-21, Shankar Unni wrote: > >>[EMAIL PROTECTED] wrote: > >>>You may find the 'handle' utility from www.sysinternal.com a handy > >>>(no pun intended :-) ) tool for determining which files are opene

Re: Bug in rm -r with locked files

2003-01-22 Thread Glenn Fowler
the problem reproduces on 1.3.12(0.54/3/2) I believe its a bug in rm itself the ast rm (http::/www.research.att.com/sw/download/) works fine these commands illustrate the problem window#1: mkdir /tmp/directory window#1: vi /tmp/directory/file window#2: /bin/ls -alR /tmp/directory /tmp/directory

Re: Bug in rm -r with locked files

2003-01-22 Thread Christopher Faylor
On Wed, Jan 22, 2003 at 02:00:26PM -0800, Karl M wrote: >Hi Chris... > >By my calculation you have received over $150,000.00 in total from >everyone...Unfortunately each payment was $0.02. ;-) Yeah, and all of the payments came with postage due... cgf -- Unsubscribe info: http://cygwin.com

Re: Bug in rm -r with locked files

2003-01-22 Thread Karl M
Hi Chris... By my calculation you have received over $150,000.00 in total from everyone...Unfortunately each payment was $0.02. ;-) ...Karl From: Christopher Faylor <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Bug in rm -r with locked files Date: W

RE: Bug in rm -r with locked files

2003-01-22 Thread [EMAIL PROTECTED]
See if you can find it and get everyone to use it quickly please! ;-) Larry Original Message: - From: Shankar Unni [EMAIL PROTECTED] Date: Wed, 22 Jan 2003 11:17:39 -0800 To: [EMAIL PROTECTED] Subject: RE: Bug in rm -r with locked files Larry Hall writes: >>Now why

RE: Bug in rm -r with locked files

2003-01-22 Thread Shankar Unni
Larry Hall writes: >>Now why was it important to do this "delayed remove" semantics? > [...] the current behavior is meant to combat the "my script/program > deletes the file/directory then tries to recreate it - why isn't the > file/directory deleted when unlink() returns?" issue. Ah. I ha

Re: Bug in rm -r with locked files

2003-01-22 Thread Igor Pechtchanski
On Wed, 22 Jan 2003, Randall R Schulz wrote: > At 08:44 2003-01-22, Igor Pechtchanski wrote: > >On Wed, 22 Jan 2003, Gael Mulat wrote: > > > > > OK. If I summurize all that has been said, this problem is > > > well-known but has no solution in a near future. > > > > > > But a workaround wo

Re: Bug in rm -r with locked files

2003-01-22 Thread Randall R Schulz
At 08:44 2003-01-22, Igor Pechtchanski wrote: On Wed, 22 Jan 2003, Gael Mulat wrote: > OK. If I summurize all that has been said, this problem is > well-known but has no solution in a near future. > > But a workaround would be very useful for people (me and Brian > Kelly, for instance) wh

Re: Bug in rm -r with locked files

2003-01-22 Thread Igor Pechtchanski
On Wed, 22 Jan 2003, Gael Mulat wrote: > > > Gael Mulat wrote: > > >Hi, > > > >This is a bug report about rm (package fileutils, version 4.1-1) on W2K. > > > >Test case: take 2 cygwin shells. > > shell 1: > >mkdir /tmp/directory > >vi /tmp/directory/file > > > > shell 2: > >

Re: Bug in rm -r with locked files

2003-01-22 Thread Dave Hooper
> Yea yea yea - I know I know. I'm just bitchen to bitch. Problem is already > solved - MS del works just fine - it's just "Kludgy" is all. You're not the 'washerite' Brian Kelly by any chance? d -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cyg

Re: Bug in rm -r with locked files

2003-01-22 Thread Christopher Faylor
eally. I'm still waiting for the $150,000. cgf >"Christopher Faylor" <[EMAIL PROTECTED]>@cygwin.com on 01/22/2003 10:38:02 AM > >Please respond to [EMAIL PROTECTED] > >Sent by:[EMAIL PROTECTED] > > >To:[EMAIL PROTECTED] >cc: (bcc: Brian Kel

Re: Bug in rm -r with locked files

2003-01-22 Thread Brian . Kelly
Please respond to [EMAIL PROTECTED] Sent by:[EMAIL PROTECTED] To:[EMAIL PROTECTED] cc: (bcc: Brian Kelly/WTC1/Empire) Subject:Re: Bug in rm -r with locked files On Wed, Jan 22, 2003 at 06:44:13AM -0500, [EMAIL PROTECTED] wrote: >Except when you're dealing with more t

Re: Bug in rm -r with locked files

2003-01-22 Thread Christopher Faylor
On Wed, Jan 22, 2003 at 06:44:13AM -0500, [EMAIL PROTECTED] wrote: >Except when you're dealing with more than 10,000 files on a fortune >1000 web portal. Chmoding the whole thing imposes an "oppressive" >delay. > >Darn - hey boss - where's that $300,000 you promised me for commercial >deployment s

RE: Bug in rm -r with locked files

2003-01-22 Thread Brian . Kelly
ou get done laying off my co-worker? OH ... OKAY! Brian Kelly "Steve Fairbairn" <[EMAIL PROTECTED]>@cygwin.com on 01/22/2003 03:57:00 AM Sent by:[EMAIL PROTECTED] To:[EMAIL PROTECTED] cc: (bcc: Brian Kelly/WTC1/Empire) Subject:RE: Bug in rm -r with locked

Re: Bug in rm -r with locked files

2003-01-22 Thread Gael Mulat
Gael Mulat wrote: Hi, This is a bug report about rm (package fileutils, version 4.1-1) on W2K. Test case: take 2 cygwin shells. shell 1: mkdir /tmp/directory vi /tmp/directory/file shell 2: /bin/rm -rf /tmp/directory The shell2 doesn't manage to remove the directory an

RE: Bug in rm -r with locked files

2003-01-22 Thread Steve Fairbairn
e the required results? Steve. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Subject: Re: Bug in rm -r with locked files use rm -rf in a script and must resort to the native "del" cmd because rm -rf hangs when it encounter

Re: Bug in rm -r with locked files

2003-01-21 Thread Larry Hall (RFK Partners, Inc)
At 04:39 PM 1/21/2003, Shankar Unni wrote: >Christopher Faylor wrote: > >>It's not a completely intractable problem. I think that someone (Chris >>January?) provided a workaround at one point. "cygserver" could also >>provide a possible solution someday. > >Right. I went back and re-read those ar

Re: Bug in rm -r with locked files

2003-01-21 Thread Larry Hall (RFK Partners, Inc)
PROTECTED] >URL: http://www.astra.ph > > >- Original Message - >From: David Means >To: Gael Mulat >Cc: [EMAIL PROTECTED] >Sent: Tuesday, January 21, 2003 9:35 PM >Subject: Re: Bug in rm -r with locked files > > >Yep, I concur. If windows has a lock on the fil

Re: Bug in rm -r with locked files

2003-01-21 Thread Carlo Florendo
(BSent: Tuesday, January 21, 2003 9:35 PM (BSubject: Re: Bug in rm -r with locked files (B (B (BYep, I concur. If windows has a lock on the file, rm just hangs. I've seen (Bit hang on directories when doing an 'rm -rf yada/*" (B (BOn Tue, 2003-01-21 at 06:50, Gael Mulat wrote: 

Re: Bug in rm -r with locked files

2003-01-21 Thread Randall R Schulz
Shankar, At 13:39 2003-01-21, Shankar Unni wrote: Christopher Faylor wrote: It's not a completely intractable problem. I think that someone (Chris January?) provided a workaround at one point. "cygserver" could also provide a possible solution someday. Right. I went back and re-read those a

Re: Bug in rm -r with locked files

2003-01-21 Thread Carlo Florendo
PROTECTED] URL: http://www.astra.ph - Original Message - From: "Gael Mulat" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 21, 2003 8:50 PM Subject: Bug in rm -r with locked files > Hi, > > This is a bug report about rm (package

Re: Bug in rm -r with locked files

2003-01-21 Thread Igor Pechtchanski
On Tue, 21 Jan 2003, Shankar Unni wrote: > (PS The archive search feature at http://cygwin.com/ml/cygwin/ seem to > be broken - just about anything I type in the search box, including the > word "cygwin", comes back with "no matches". So I apologize for not > being able to do this research myself,

Re: Bug in rm -r with locked files

2003-01-21 Thread Shankar Unni
Christopher Faylor wrote: It's not a completely intractable problem. I think that someone (Chris January?) provided a workaround at one point. "cygserver" could also provide a possible solution someday. Right. I went back and re-read those archives. Interesting problem. Now why was it import

RE: Bug in rm -r with locked files

2003-01-21 Thread [EMAIL PROTECTED]
y if they solve some long-standing problems! ;-) Larry Original Message: - From: [EMAIL PROTECTED] Date: Tue, 21 Jan 2003 14:59:23 -0500 To: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: Bug in rm -r with locked files Well - even so "my" probl

RE: Bug in rm -r with locked files

2003-01-21 Thread [EMAIL PROTECTED]
Or read my analysis of the strace I did which I posted earlier in the thread. ;-) No worries. Larry Original Message: - From: Shankar Unni [EMAIL PROTECTED] Date: Tue, 21 Jan 2003 11:47:54 -0800 To: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: Bug in rm -r with locked

Re: Bug in rm -r with locked files

2003-01-21 Thread Christopher Faylor
On Tue, Jan 21, 2003 at 11:25:19AM -0800, Randall R Schulz wrote: >Shankar, > >At 11:05 2003-01-21, Shankar Unni wrote: >>[EMAIL PROTECTED] wrote: >>>You may find the 'handle' utility from www.sysinternal.com a handy >>>(no pun intended :-) ) tool for determining which files are opened >>>by which

RE: Bug in rm -r with locked files

2003-01-21 Thread Brian . Kelly
r Unni" <[EMAIL PROTECTED]>@cygwin.com on 01/21/2003 02:47:54 PM Sent by:[EMAIL PROTECTED] To:"'Max Bowsher'" <[EMAIL PROTECTED]>, [EMAIL PROTECTED] cc: (bcc: Brian Kelly/WTC1/Empire) Subject:RE: Bug in rm -r with locked files Max corrected me:

RE: Bug in rm -r with locked files

2003-01-21 Thread Shankar Unni
Max corrected me: > No. The thing that rm -rf gets stuck on is vim .swp recovery file. Ah. Sorry. Should have straced the thing before shooting off. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http:

Re: Bug in rm -r with locked files

2003-01-21 Thread Brian . Kelly
AIL PROTECTED]>@cygwin.com on 01/21/2003 02:25:19 PM Sent by:[EMAIL PROTECTED] To:[EMAIL PROTECTED] cc: (bcc: Brian Kelly/WTC1/Empire) Subject:Re: Bug in rm -r with locked files Shankar, At 11:05 2003-01-21, Shankar Unni wrote: >[EMAIL PROTECTED] wrote: >>You may find

Re: Bug in rm -r with locked files

2003-01-21 Thread Randall R Schulz
Shankar, At 11:05 2003-01-21, Shankar Unni wrote: [EMAIL PROTECTED] wrote: You may find the 'handle' utility from www.sysinternal.com a handy (no pun intended :-) ) tool for determining which files are opened by which processes. I don't think that was the primary issue. The issue was that if

Re: Bug in rm -r with locked files

2003-01-21 Thread Max Bowsher
Shankar Unni wrote: > I don't think that was the primary issue. The issue was that if a > process is using a directory as its working directory (chdir()'ed into > it), "rm -rf" goes into an infinite loop attempting to remove the > directory (rather than print an error and move on). No. The thing

Re: Bug in rm -r with locked files

2003-01-21 Thread Shankar Unni
[EMAIL PROTECTED] wrote: You may find the 'handle' utility from www.sysinternal.com a handy (no pun intended :-) ) tool for determining which files are opened by which processes. I don't think that was the primary issue. The issue was that if a process is using a directory as its working dire

Re: Bug in rm -r with locked files

2003-01-21 Thread [EMAIL PROTECTED]
Thanks Randall! Larry Original Message: - From: Randall R Schulz [EMAIL PROTECTED] Date: Tue, 21 Jan 2003 09:03:16 -0800 To: [EMAIL PROTECTED] Subject: Re: Bug in rm -r with locked files Larry, Typo alert. It's <http://www.sysinternals.com/>. Lots of good info

Re: Bug in rm -r with locked files

2003-01-21 Thread Randall R Schulz
Larry, Typo alert. It's . Lots of good information and utilities there! Randall Schulz At 08:35 2003-01-21, [EMAIL PROTECTED] wrote: You may find the 'handle' utility from www.sysinternal.com a handy (no pun intended :-) ) tool for determining which files are op

Re: Bug in rm -r with locked files

2003-01-21 Thread [EMAIL PROTECTED]
fference in behavior we're seeing, then I think we'll have solved one mystery and at least have a workaround to the problem. Larry Original Message: - From: Gael Mulat [EMAIL PROTECTED] Date: Tue, 21 Jan 2003 15:49:02 +0100 To: [EMAIL PROTECTED] Subject: Re: Bug in rm -r

Re: Bug in rm -r with locked files

2003-01-21 Thread Gael Mulat
Corinna Vinschen wrote: On Tue, Jan 21, 2003 at 12:50:18PM +0100, Gael Mulat wrote: >Hi, > >This is a bug report about rm (package fileutils, version 4.1-1) on W2K. > >Test case: take 2 cygwin shells. > shell 1: >mkdir /tmp/directory >vi /tmp/directory/file > > shell 2: >

Re: Bug in rm -r with locked files

2003-01-21 Thread Brian . Kelly
YES! I too concur BIG TIME! In fact, I do not use rm -r in my scripts because of this problem. In perl scripts I use the Windows command $output=`cmd /c del /s *.* > 2>&1` (or similar) and examine the output for ACCESS DENIED, where I can then do an attrib and continue. AN .

Re: Bug in rm -r with locked files

2003-01-21 Thread Corinna Vinschen
On Tue, Jan 21, 2003 at 12:50:18PM +0100, Gael Mulat wrote: >Hi, > >This is a bug report about rm (package fileutils, version 4.1-1) on W2K. > >Test case: take 2 cygwin shells. > shell 1: >mkdir /tmp/directory >vi /tmp/directory/file > > shell 2: >/bin/rm -rf /tmp/directo

Re: Bug in rm -r with locked files

2003-01-21 Thread David Means
Yep, I concur.  If windows has a lock on the file, rm just hangs.  I've seen it hang on directories when doing an 'rm -rf yada/*" On Tue, 2003-01-21 at 06:50, Gael Mulat wrote: Hi, This is a bug report about rm (package fileutils, version 4.1-1) on W2K. Test case: take 2 cygwin

Bug in rm -r with locked files

2003-01-21 Thread Gael Mulat
Hi, This is a bug report about rm (package fileutils, version 4.1-1) on W2K. Test case: take 2 cygwin shells. shell 1: mkdir /tmp/directory vi /tmp/directory/file shell 2: /bin/rm -rf /tmp/directory The shell2 doesn't manage to remove the directory and goes into an infinit