Skip to content

Commit fca209b

Browse files
committed
ignore errors due to races if a parallel mkdir.sh already
created the dir git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909707 13f79535-47bb-0310-9956-ffa450edef68
1 parent 4c9ca36 commit fca209b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

build/mkdir.sh

+7-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,13 @@ for file in ${1+"$@"} ; do
3838
continue ;;
3939
esac
4040
if test ! -d "$pathcomp"; then
41-
mkdir "$pathcomp" || errstatus=$?
41+
thiserrstatus=0
42+
mkdir "$pathcomp" || thiserrstatus=$?
43+
# ignore errors due to races if a parallel mkdir.sh already
44+
# created the dir
45+
if test $thiserrstatus != 0 && test ! -d "$pathcomp" ; then
46+
errstatus=$thiserrstatus
47+
fi
4248
fi
4349
pathcomp="$pathcomp/"
4450
done

0 commit comments

Comments
 (0)