diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-03-08 02:36:16 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-03-08 02:36:16 +0000 |
commit | ddd127ebd48860b93ec9cca2e6ad073307f50880 (patch) | |
tree | d41659d74c470a147b70d493e951cacbf9763c03 /etc/inc/config.inc | |
parent | ea79cf11620776f1fbcbc2045d020d68646936d6 (diff) | |
download | pfsense-ddd127ebd48860b93ec9cca2e6ad073307f50880.zip pfsense-ddd127ebd48860b93ec9cca2e6ad073307f50880.tar.gz |
Correctly detect processes pid's.
Diffstat (limited to 'etc/inc/config.inc')
-rw-r--r-- | etc/inc/config.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc index 6e9edc6..5cb7ca4 100644 --- a/etc/inc/config.inc +++ b/etc/inc/config.inc @@ -2834,9 +2834,9 @@ function system_start_ftp_helpers() { if($g['debug']) log_error("Config: FTP proxy disabled for interface {$ifent}"); - $helpers = `/bin/ps awux | grep "ftp-proxy" | grep "{$port}" | grep -v grep | awk '{ print $2 }'`; - if($helpers) - mwexec("/bin/kill {$helpers}"); + exec("/bin/ps awux | grep \"ftp-proxy\" | grep \"{$port}\" | grep -v grep | awk '{ print $2 }'", $helpers); + if(count($helpers[0]) > 0) + mwexec("/bin/kill {$helpers[0]}"); $interface_counter++; } else { /* grab the current interface IP address */ |