]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Fix concurrent autom4te.cache directory creation race.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Fri, 12 Jun 2009 11:38:57 +0000 (13:38 +0200)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Fri, 12 Jun 2009 11:38:57 +0000 (13:38 +0200)
* bin/autom4te.in: Do not error out if another `autom4te'
instance created the cache directory before we could.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
bin/autom4te.in

index f474f701ef2d967a29a92abde43265831c87097b..dd5a354dcc3f35210155cc6f56366986769d9a28 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-06-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       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  <stevenj@alum.mit.edu>
        and Eric Blake  <ebb9@byu.net>
 
index 471b1656ce7afaec89a2f8c2b56e5dcd29d45b0a..cf425bb43f5a50e2daaf4a44f54cecbe89a3a778 100644 (file)
@@ -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: $!";
   }