aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-08-11 12:12:02 +0200
committerdoktornotor <notordoktor@gmail.com>2015-08-11 12:12:02 +0200
commit6ec653362178f133b7e3947d6505b05f6bdb9e11 (patch)
treef61ad7d043e5bb7c0fbb0d88c760e8e81dbb38d4
parent9685253ce781dd828fa37acd0490500447d33005 (diff)
downloadpfsense-packages-6ec653362178f133b7e3947d6505b05f6bdb9e11.tar.gz
pfsense-packages-6ec653362178f133b7e3947d6505b05f6bdb9e11.tar.bz2
pfsense-packages-6ec653362178f133b7e3947d6505b05f6bdb9e11.zip
tinydns.inc - remove useless config_(un)lock calls
This function does nothing but return.
-rw-r--r--config/tinydns/tinydns.inc5
1 files changed, 1 insertions, 4 deletions
diff --git a/config/tinydns/tinydns.inc b/config/tinydns/tinydns.inc
index f2bda436..3bf64777 100644
--- a/config/tinydns/tinydns.inc
+++ b/config/tinydns/tinydns.inc
@@ -420,7 +420,7 @@ function tinydns_setup_ping_items() {
log_error("Could not open {$g['vardb_path']}/pkgpinghosts for writing.");
return;
}
- config_lock();
+
/* write out each ip address so ping_hosts.sh can begin monitoring ip
* status and create a database of the status information that we can use.
*/
@@ -484,7 +484,6 @@ function tinydns_setup_ping_items() {
}
}
fclose($fd);
- config_unlock();
}
function tinydns_create_zone_file() {
@@ -492,7 +491,6 @@ function tinydns_create_zone_file() {
conf_mount_rw();
if(file_exists("/tmp/config.cache"))
unlink("/tmp/config.cache");
- config_lock();
if(file_exists("{$g['varrun_path']}/service/tinydns/root/data"))
exec("rm -f {$g['varrun_path']}/service/tinydns/root/data");
if(!is_dir("{$g['varrun_path']}/service/tinydns/root"))
@@ -648,7 +646,6 @@ function tinydns_create_zone_file() {
fclose($fd);
/* tell tinydns to reload zone file */
exec("cd {$g['varrun_path']}/service/tinydns/root && /usr/local/bin/tinydns-data");
- config_unlock();
conf_mount_ro();
}