You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by gb...@apache.org on 2023/05/09 21:58:27 UTC
svn commit: r1909707 - /httpd/httpd/trunk/build/mkdir.sh
Author: gbechis
Date: Tue May 9 21:58:27 2023
New Revision: 1909707
URL: http://svn.apache.org/viewvc?rev=1909707&view=rev
Log:
ignore errors due to races if a parallel mkdir.sh already
created the dir
Modified:
httpd/httpd/trunk/build/mkdir.sh
Modified: httpd/httpd/trunk/build/mkdir.sh
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/build/mkdir.sh?rev=1909707&r1=1909706&r2=1909707&view=diff
==============================================================================
--- httpd/httpd/trunk/build/mkdir.sh (original)
+++ httpd/httpd/trunk/build/mkdir.sh Tue May 9 21:58:27 2023
@@ -38,7 +38,13 @@ for file in ${1+"$@"} ; do
continue ;;
esac
if test ! -d "$pathcomp"; then
- mkdir "$pathcomp" || errstatus=$?
+ thiserrstatus=0
+ mkdir "$pathcomp" || thiserrstatus=$?
+ # ignore errors due to races if a parallel mkdir.sh already
+ # created the dir
+ if test $thiserrstatus != 0 && test ! -d "$pathcomp" ; then
+ errstatus=$thiserrstatus
+ fi
fi
pathcomp="$pathcomp/"
done