aboutsummaryrefslogtreecommitdiff
path: root/SBO-Lib/lib/SBO
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-05-15 13:07:48 +0200
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-05-15 13:07:48 +0200
commit14b28b226057715c592660aaf54053f21d71676c (patch)
tree3072125e3ed5fb782b4dad2193a124aff18d1b96 /SBO-Lib/lib/SBO
parent3921f2011bbe1e3f48684b4caf3a76c1d584732e (diff)
downloadsbotools2-14b28b226057715c592660aaf54053f21d71676c.tar.xz
SBO::Lib: document another race condition
Diffstat (limited to 'SBO-Lib/lib/SBO')
-rw-r--r--SBO-Lib/lib/SBO/Lib.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/SBO-Lib/lib/SBO/Lib.pm b/SBO-Lib/lib/SBO/Lib.pm
index 205909d..923349e 100644
--- a/SBO-Lib/lib/SBO/Lib.pm
+++ b/SBO-Lib/lib/SBO/Lib.pm
@@ -277,6 +277,7 @@ sub migrate_repo {
# check for the validity of new $config{SBO_HOME}
sub check_repo {
if (-d $repo_path) {
+ _race::cond '$repo_path could be deleted after -d check';
opendir(my $repo_handle, $repo_path);
FIRST: while (my $dir = readdir $repo_handle) {
next FIRST if in($dir => qw/ . .. /);