mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
set auto_release
This commit is contained in:
parent
f986e40271
commit
5c38d65ad3
@ -354,7 +354,7 @@ function lock($lock) {
|
||||
@touch("{$g['tmp_path']}/{$lock}.lock");
|
||||
ini_set('error_reporting', E_NONE);
|
||||
$config_lock_key = ftok("{$g['tmp_path']}/{$lock}.lock", 'a');
|
||||
$cfglckkey = sem_get($config_lock_key, 1);
|
||||
$cfglckkey = sem_get($config_lock_key, 1, 0666, true);
|
||||
$cfglckkeyconsumers++;
|
||||
// Rely on or own logging for errors here.
|
||||
if (!sem_acquire($cfglckkey)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user