From 99dcc4895b940b6dbc33aa1ef12f7260af317071 Mon Sep 17 00:00:00 2001 From: Warren Baker Date: Fri, 8 Mar 2013 21:35:40 +0200 Subject: Use the process name rather to avoid the infamous file not found error --- etc/inc/filter.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'etc') 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. -- cgit v1.1