From: Ralf Wildenhues Date: Fri, 12 Jun 2009 11:38:57 +0000 (+0200) Subject: Fix concurrent autom4te.cache directory creation race. X-Git-Tag: v2.64~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cafdba3139a2f7dfa706b35d9c8f35298896d1b2;p=thirdparty%2Fautoconf.git Fix concurrent autom4te.cache directory creation race. * bin/autom4te.in: Do not error out if another `autom4te' instance created the cache directory before we could. Signed-off-by: Ralf Wildenhues --- diff --git a/ChangeLog b/ChangeLog index f474f701e..dd5a354dc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-06-12 Ralf Wildenhues + + Fix concurrent autom4te.cache directory creation race. + * bin/autom4te.in: Do not error out if another `autom4te' + instance created the cache directory before we could. + 2009-06-11 Steven G. Johnson and Eric Blake diff --git a/bin/autom4te.in b/bin/autom4te.in index 471b1656c..cf425bb43 100644 --- a/bin/autom4te.in +++ b/bin/autom4te.in @@ -972,10 +972,11 @@ if ($freeze) exit $exit_code; } -# We need our cache directory. +# We need our cache directory. Don't fail with parallel creation. if (! -d "$cache") { mkdir "$cache", 0755 + or -d "$cache" or fatal "cannot create $cache: $!"; }