diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-04-21 22:49:09 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-04-21 22:49:09 +0000 |
commit | a1a9ce875cb5bef6be1180edc6f3d1502a69864d (patch) | |
tree | 0b9241d0a3cf134a17a20b0aefcd9f0d1c73ca87 /etc/inc/config.inc | |
parent | 54aa1a51a20368ff0069d6ffa58f90a3d052080d (diff) | |
download | pfsense-a1a9ce875cb5bef6be1180edc6f3d1502a69864d.zip pfsense-a1a9ce875cb5bef6be1180edc6f3d1502a69864d.tar.gz |
Debug out when a lock recursion issue is present. This might expose some missing unlocks and lead to performance speedups.
Diffstat (limited to 'etc/inc/config.inc')
-rw-r--r-- | etc/inc/config.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc index f875f3a..50f70da 100644 --- a/etc/inc/config.inc +++ b/etc/inc/config.inc @@ -1179,6 +1179,8 @@ function config_lock() { return; } else { /* file locked, wait and try again */ + if($n == 4) + log_error("[DEBUG] Lock recursion detected."); $process_lock = false; sleep(1); $n++; |