Another attempt to prevent failures from super_mkdir() in kdesvn-build when creating the log directory

from two processes.

Thanks to David Faure for the troubleshooting.

CCMAIL:dfaure@kde.org

svn path=/trunk/KDE/kdesdk/scripts/kdesvn-build; revision=768979
wilder
Michael Pyne 18 years ago
parent 47ab8e78e9
commit 709ea493fe
  1. 5
      kdesvn-build

@ -3949,7 +3949,10 @@ sub super_mkdir
$temp .= "$_/";
next if -e $temp;
return 0 if not mkdir ($temp);
# Check again if the directory does not exist before failing, since this
# function may be run concurrently in different processes.
return 0 if not mkdir ($temp) and not -e $temp;
}
return 1;

Loading…
Cancel
Save