On 12/16/2011 04:01 AM, Martin Costabel wrote: > On 15/12/11 23:35, Peter O'Gorman wrote: >> On 12/15/2011 04:27 PM, Peter O'Gorman wrote: >> >>> >>> Ok, thanks, this is commit b04fe8e6 which Ralf added a couple of years >>> ago to fix a bug with parallel archive extraction on ... darwin. I'll >>> have a look at it. >> >> And looking some more, I filed rdar://6900552 on this (ar taking a lock >> when opening an archive for reading breaks parallel builds), and that >> was fixed in Xcode-3.2.2, so I can at least make libtool not use a >> lockfile if Xcode is 3.2.2 or later. > > But why this hard link hack? Why not just simply look whether the file > exists, and touch it if it doesn't? >
There's a race if you do that, some other process could create the file after you check, and before you create. Peter ------------------------------------------------------------------------------ Learn Windows Azure Live! Tuesday, Dec 13, 2011 Microsoft is holding a special Learn Windows Azure training event for developers. It will provide a great way to learn Windows Azure and what it provides. You can attend the event by watching it streamed LIVE online. Learn more at http://p.sf.net/sfu/ms-windowsazure _______________________________________________ Fink-users mailing list Fink-users@lists.sourceforge.net List archive: http://news.gmane.org/gmane.os.macosx.fink.user Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-users