summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2010-06-18 10:36:46 -0400
committerjim-p <jimp@pfsense.org>2010-06-18 10:36:46 -0400
commit1fea67419a5c7042e06d9ff0740bbfee97a05bad (patch)
tree08135a6f2d0eefe78b1f71d4b1e975c8ff9c91ef /usr/local
parentd499c12bc05fa09b3810abc6125d4edf5edee54f (diff)
downloadpfsense-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.php2
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']) {
OpenPOWER on IntegriCloud