From 5125c7462648131dff08a8d88577ce6e3cce797d Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Fri, 30 May 2014 09:30:12 -0300 Subject: [PATCH] Add @ to silent any possible return of posix_kill --- etc/sshd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/sshd b/etc/sshd index c119b27e4e9..9cea518797c 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");