diff options
author | Ermal Luçi <eri@pfsense.org> | 2010-03-05 21:59:24 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2010-03-05 21:59:24 +0000 |
commit | 6b605c976e6c47bc844a7e9ed1a899b828498607 (patch) | |
tree | 5868f70aa07c0a27b5f9826a3f244c5131400a8a /etc/inc/util.inc | |
parent | 3de9447703621867c59667161aeadabd20ef5de0 (diff) | |
download | pfsense-6b605c976e6c47bc844a7e9ed1a899b828498607.zip pfsense-6b605c976e6c47bc844a7e9ed1a899b828498607.tar.gz |
Till the flock issue is fixed open the races doors, place your bets please!
Diffstat (limited to 'etc/inc/util.inc')
-rw-r--r-- | etc/inc/util.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc index 4045a9d..c289f37 100644 --- a/etc/inc/util.inc +++ b/etc/inc/util.inc @@ -127,10 +127,10 @@ function lock($lock) { @touch("{$g['tmp_path']}/{$lock}.lock"); $cfglckkeyconsumers++; if ($fp = fopen("{$g['tmp_path']}/{$lock}.lock", "w+")) { - if (flock($fp, LOCK_EX)) + //if (flock($fp, LOCK_EX)) return $fp; - else - fclose($fp); + //else + // fclose($fp); } } |