utils/mkdir-p: check if dir exists also after mkdir failed
authorSebastian Andrzej Siewior <sebastian@breakpoint.cc>
Fri, 10 Jun 2016 18:04:51 +0000 (20:04 +0200)
committerRich Salz <rsalz@openssl.org>
Thu, 23 Jun 2016 15:10:29 +0000 (11:10 -0400)
commit70a56b914772e6b21cda2a5742817ae4bb7290f1
tree261e2e1200e26995136754f42a644853ef09f020
parentfe2d149119063ec3c89fd6db9af8a6970e3e6032
utils/mkdir-p: check if dir exists also after mkdir failed

with "make install -j8" it happens very often that two or more make
instances are creating the same directory in parallel. As a result one
instace creates the directory and second mkdir fails because the
directory exists already (but it did not while testing for it earlier).

Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1204)
util/mkdir-p.pl