mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
This function can sleep till the resource is free and can help find not well behaving code. * Remove most of the config_lock/config_unlock logics on the whole scripts/pages it is an abuse of this. If any sybsytem wants to lock can do so with its own lock. * Lock the config when doing a filter reload to avoid parallell recursion on this function, since it is not reentrant. This compenstates for the removal of lock aquiring from the scripts/pages. * config_lock/config_unlock are now compate shims that do nothing. They are preserved since packages 'abuse' them too.
10 lines
105 B
Bash
Executable File
10 lines
105 B
Bash
Executable File
#! /usr/local/bin/php -f
|
|
|
|
|
|
<?php
|
|
|
|
require_once("util.inc");
|
|
$GLOBALS['lockscript'] = lock('config');
|
|
|
|
?>
|