summaryrefslogtreecommitdiffstats
path: root/etc/inc/util.inc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2010-03-05 21:59:24 +0000
committerErmal Luçi <eri@pfsense.org>2010-03-05 21:59:24 +0000
commit6b605c976e6c47bc844a7e9ed1a899b828498607 (patch)
tree5868f70aa07c0a27b5f9826a3f244c5131400a8a /etc/inc/util.inc
parent3de9447703621867c59667161aeadabd20ef5de0 (diff)
downloadpfsense-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.inc6
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);
}
}
OpenPOWER on IntegriCloud