mkdir - Fix MP race in mkdir -p
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 30 Nov 2011 17:52:08 +0000 (09:52 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 30 Nov 2011 17:52:08 +0000 (09:52 -0800)
commit2358f4e70797e22265ff5f60b7e3d66767643f7b
treefe0e3b5c6d195f5ecf3f431ea99ebdd33cc5edd9
parente019ff8c2e80a505f0d36597f6d1a231351e897c
mkdir - Fix MP race in mkdir -p

* mkdir -p can race other mkdir -p commands

* Do the same fix that we did for xinstall... if the mkdir() fails after
  the stat() check, stat() again to see if the directory creation raced.
bin/mkdir/mkdir.c