diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-05-22 21:46:35 +0200 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-05-22 21:46:35 +0200 |
commit | 0521431f12e7d01a770987bb4f7bc4919e9ba15e (patch) | |
tree | d22ae9bdaff762bd42ad8ff87fc0e994bf452d27 /SBO-Lib/lib/SBO/Lib.pm | |
parent | ebba259fdcfd8cffe61000b48f11651fe8dd48b3 (diff) | |
download | sbotools2-0521431f12e7d01a770987bb4f7bc4919e9ba15e.tar.xz |
SBO::Lib: document race condition in git_sbo_tree where $cwd could be deleted
Diffstat (limited to 'SBO-Lib/lib/SBO/Lib.pm')
-rw-r--r-- | SBO-Lib/lib/SBO/Lib.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/SBO-Lib/lib/SBO/Lib.pm b/SBO-Lib/lib/SBO/Lib.pm index a090d01..5bafe0f 100644 --- a/SBO-Lib/lib/SBO/Lib.pm +++ b/SBO-Lib/lib/SBO/Lib.pm @@ -344,6 +344,7 @@ sub git_sbo_tree { remove_tree($repo_path) if -d $repo_path; $res = system(qw/ git clone /, $url, $repo_path) == 0; } + _race::cond '$cwd could be deleted here'; return 1 if chdir $cwd and $res; return 0; } |