Minor code cleanup

This commit is contained in:
Jamie Cameron
2022-03-27 09:21:16 -07:00
parent 4a12e37f9a
commit 9fb000e9c6

View File

@@ -232,8 +232,7 @@ return $conf1 ne $conf2;
# Returns the syslog PID file
sub get_syslog_pid
{
local $pid;
($pid) = &find_byname("syslogd");
my ($pid) = &find_byname("syslogd");
($pid) = &find_byname("rsyslogd") if (!$pid);
if (!$pid && $config{'pid_file'}) {
foreach my $pfile (map { glob($_) } split(/\s+/, $config{'pid_file'})) {