patch for infinite loop in unlink()

Joe Buehler jbuehler@hekimian.com
Thu Aug 8 06:39:00 GMT 2002


Here is a patch for the problem of "rm -fr" getting into an infinite loop
when it tries to delete a file that is open.

It is a little incomplete in that it depends on the existence of a directory
named .cygdel in the root directory of the involved drive, but does not
attempt to create the directory.  So some solution is needed for that.
The patch code has no effect if anything fails.

It has worked for me for some time now, but definitely needs to be
checked by someone who knows the guts of the code involved.

Please critique...

Joe Buehler
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: temp.patch
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20020808/7a1ca33e/attachment.ksh>


More information about the Cygwin-patches mailing list