diff options
author | Warren Baker <warren@decoy.co.za> | 2013-03-08 21:35:40 +0200 |
---|---|---|
committer | Warren Baker <warren@decoy.co.za> | 2013-03-08 21:35:40 +0200 |
commit | 99dcc4895b940b6dbc33aa1ef12f7260af317071 (patch) | |
tree | f3f7507fe05794e5dfde7c74ad5bd0047d28037c | |
parent | af8d854c9154a3e5ffb167e0170091ccac6a4ed4 (diff) | |
download | pfsense-99dcc4895b940b6dbc33aa1ef12f7260af317071.zip pfsense-99dcc4895b940b6dbc33aa1ef12f7260af317071.tar.gz |
Use the process name rather to avoid the infamous file not found error
-rw-r--r-- | etc/inc/filter.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 6075091..73c92ea 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -350,10 +350,10 @@ function filter_configure_sync($delete_states_if_needed = true) { if(!empty($filterdns)) { @file_put_contents("{$g['varetc_path']}/filterdns.conf", $filterdns); - if (isvalidpid("{$g['tmp_path']}/filterdns.pid")) - sigkillbypid("{$g['tmp_path']}/filterdns.pid", "HUP"); + if (is_process_running("filterdns")) + sigkillbyname("filterdns", "HUP"); else { - killbypid("{$g['tmp_path']}/filterdns.pid"); + killbyname("filterdns"); /* * FilterDNS has three debugging levels. The default choosen is 1. * Availabe are level 2 and greater then 2. |