From eea0f12f5566590880794583493313c1e659491b Mon Sep 17 00:00:00 2001 From: Andreas Guldstrand Date: Fri, 13 May 2016 23:58:24 +0000 Subject: SBO::Lib: Add race condition check to read_config --- SBO-Lib/lib/SBO/Lib.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'SBO-Lib/lib/SBO/Lib.pm') 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; -- cgit v1.2.3