coreutils 5.97; mkdir -p; mkdir: cannot create directory `name': File exists

Rolf Campbell thats.unpossible@gmail.com
Tue Aug 22 19:10:00 GMT 2006


I believe there is a race-condition in "mkdir -p". Specifically, if the 
directory does not exist *yet* when stat is called on line #98 of 
"coreutils-5.97/lib/mkdir-p.c", but the directory *does* exist by the 
time line #190 of the same file calls mkdir(), then the program will 
error with "File exists".
I hit this occasionally when doing parallel builds.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygcheck.txt
URL: <http://cygwin.com/pipermail/cygwin/attachments/20060822/42ee5ffc/attachment.txt>
-------------- next part --------------
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/


More information about the Cygwin mailing list

AltStyle によって変換されたページ (->オリジナル) /