This commit is contained in:
Yang Tse 2008-01-11 21:59:05 +00:00
parent 22c76df44d
commit f09fe4b49f

View File

@ -669,7 +669,7 @@ sub verifyssh {
if($pid > 0) {
# if we have a pid it is actually our ssh server,
# since runsshserver() unlinks previous pidfile
if(!kill(0, $pid) {
if(!kill(0, $pid)) {
logmsg "RUN: SSH server has died after starting up\n";
checkdied($pid)
unlink($SSHPIDFILE);
@ -692,7 +692,7 @@ sub verifysocks {
if($pid > 0) {
# if we have a pid it is actually our socks server,
# since runsocksserver() unlinks previous pidfile
if(!kill(0, $pid) {
if(!kill(0, $pid)) {
logmsg "RUN: SOCKS server has died after starting up\n";
checkdied($pid)
unlink($SOCKSPIDFILE);