aboutsummaryrefslogtreecommitdiff
path: root/SBO-Lib/lib
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-05-13 23:58:24 +0000
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-05-13 23:58:24 +0000
commiteea0f12f5566590880794583493313c1e659491b (patch)
treed51671bbd246aeacb20900e5688ea8552dff133b /SBO-Lib/lib
parent343c71cfa9f54d13f61727bf10cf9dc7bdf44949 (diff)
downloadsbotools2-eea0f12f5566590880794583493313c1e659491b.tar.xz
SBO::Lib: Add race condition check to read_config
Diffstat (limited to 'SBO-Lib/lib')
-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 490b278..26e6561 100644
--- a/SBO-Lib/lib/SBO/Lib.pm
+++ b/SBO-Lib/lib/SBO/Lib.pm
@@ -174,6 +174,7 @@ our %config = (
sub read_config {
my %conf_values;
if (-f $conf_file) {
+ _race::cond '$conf_file might not exist after -f';
my ($fh, $exit) = open_read $conf_file;
if ($exit) {
warn $fh;