summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-05-30 09:30:12 -0300
committerRenato Botelho <garga@FreeBSD.org>2014-05-30 09:30:12 -0300
commit5125c7462648131dff08a8d88577ce6e3cce797d (patch)
tree92ffc48c5865ff52c5219b718ec61de193dab467
parent33b42689019ec9483c4e83e844ba9f12774e870a (diff)
downloadpfsense-5125c7462648131dff08a8d88577ce6e3cce797d.zip
pfsense-5125c7462648131dff08a8d88577ce6e3cce797d.tar.gz
Add @ to silent any possible return of posix_kill
-rwxr-xr-xetc/sshd2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/sshd b/etc/sshd
index c119b27..9cea518 100755
--- a/etc/sshd
+++ b/etc/sshd
@@ -180,7 +180,7 @@
$sshd_pid = exec("ps ax | egrep '/usr/sbin/[s]shd' | awk '{print $1}'");
if($sshd_pid <> "") {
echo "stopping ssh process $sshd_pid \n";
- posix_kill($sshd_pid, SIGTERM);
+ @posix_kill($sshd_pid, SIGTERM);
}
/* Launch new server process */
$status = mwexec("/usr/sbin/sshd");
OpenPOWER on IntegriCloud