diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-08-11 10:18:36 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-08-11 10:23:47 +0000 |
commit | 70ca5bb79b7c23e974dd9fc8863fc68b63b7b51b (patch) | |
tree | 36067e44b2070c795822e6733e24c8b4d1adab56 /etc | |
parent | 4fea01e0065e6750814a424bcd52eebf8359133c (diff) | |
download | pfsense-70ca5bb79b7c23e974dd9fc8863fc68b63b7b51b.zip pfsense-70ca5bb79b7c23e974dd9fc8863fc68b63b7b51b.tar.gz |
Unlock a little faster otherwise a deadlock will occur.
Reported-by: mileswu
Patch-extracted-from: https://rcs.pfsense.org/projects/pfsense/repos/mainline/merge_requests/30
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/filter.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 079aad6..a7092c1 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -307,6 +307,8 @@ function filter_configure_sync() { fclose($fda); } + unlock($filterlck); + if (file_exists("{$g['tmp_path']}/commands.txt")) { mwexec("sh {$g['tmp_path']}/commands.txt &"); unlink("{$g['tmp_path']}/commands.txt"); @@ -317,8 +319,6 @@ function filter_configure_sync() { else filter_tdr_install_cron(false); - unlock($filterlck); - if ($g['booting'] == true) echo "."; find_dns_aliases(); |