system: fix pid kill regression in #6825

This commit is contained in:
Franco Fichtner 2023-09-07 09:23:36 +02:00
parent 4b153a375a
commit ea2f63bddd

View File

@ -150,7 +150,7 @@ function dpinger_configure_do($verbose = false, $gwname = null, $bootup = false)
if (!empty($gwname) && $running_gwname != $gwname) {
continue;
}
if (isvalidpid($pidfile)) {
if (isvalidpid($proc['pidfile'])) {
killbypid($proc['pidfile']);
}
}