This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: 1.7.7: rm -rf sometimes fails - race condition?
BTW, haven't read through all of
<http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/syscalls.cc?annotate=1.570&cvsroot=src>
for lack of time, but check_dir_not_empty wastes CPU time on full directories -
you don't need to count to 1000 -- see the while loop ll. 515 - 520, the if() {}
block on ll. 521 - 525 should be moved INTO the loop. You don't ever need to run
that loop more than three times.
--
Matthias Andree
--
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