diff options
author | jim-p <jimp@pfsense.org> | 2010-06-18 10:36:46 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2010-06-18 10:36:46 -0400 |
commit | 1fea67419a5c7042e06d9ff0740bbfee97a05bad (patch) | |
tree | 08135a6f2d0eefe78b1f71d4b1e975c8ff9c91ef /usr/local | |
parent | d499c12bc05fa09b3810abc6125d4edf5edee54f (diff) | |
download | pfsense-1fea67419a5c7042e06d9ff0740bbfee97a05bad.zip pfsense-1fea67419a5c7042e06d9ff0740bbfee97a05bad.tar.gz |
Use killbyname() instead of mwexec/killall directly.
Diffstat (limited to 'usr/local')
-rw-r--r-- | usr/local/www/system_advanced_admin.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/system_advanced_admin.php b/usr/local/www/system_advanced_admin.php index 6f7a077..ca4cee3 100644 --- a/usr/local/www/system_advanced_admin.php +++ b/usr/local/www/system_advanced_admin.php @@ -412,7 +412,7 @@ function prot_change() { <?php if ($restart_sshd) { - mwexec("/usr/bin/killall sshd"); + killbyname(sshd); log_error(gettext("secure shell configuration has changed. Stopping sshd.")); if ($config['system']['enablesshd']) { |