sbotools2

Maintenance fork of the original sbotools version 2
Log | Files | Refs | README

commit eea0f12f5566590880794583493313c1e659491b
parent 343c71cfa9f54d13f61727bf10cf9dc7bdf44949
Author: Andreas Guldstrand <andreas.guldstrand@gmail.com>
Date:   Fri, 13 May 2016 23:58:24 +0000

SBO::Lib: Add race condition check to read_config

Diffstat:
MSBO-Lib/lib/SBO/Lib.pm | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git 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;