From bd66045182a8403ee6b0225c3b8884bb48802903 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Tue, 27 May 2008 02:09:42 +0000 Subject: [PATCH] Fix last fix --- proftpd/proftpd-lib.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/proftpd/proftpd-lib.pl b/proftpd/proftpd-lib.pl index f66620811..ebc392ac7 100644 --- a/proftpd/proftpd-lib.pl +++ b/proftpd/proftpd-lib.pl @@ -617,6 +617,7 @@ return \@conf; # Returns an array ref of members of the section, creating if necessary sub get_or_create_global { +local ($conf) = @_; local $global = &find_directive_struct("Global", $conf); if ($global) { # Already exists .. just return member list @@ -721,7 +722,8 @@ sub is_proftpd_running local $conf = &get_config(); local $st = &find_directive("ServerType", $conf); return -1 if (lc($st) eq "inetd"); -return &check_pid_file($config{'pid_file'}); +local $pid = &get_proftpd_pid(); +return $pid; } # this_url()