Fixed PID detection
authorJamie Cameron <jcameron@webmin.com>
Wed, 27 Feb 2008 22:35:18 +0000 (22:35 +0000)
committerJamie Cameron <jcameron@webmin.com>
Wed, 27 Feb 2008 22:35:18 +0000 (22:35 +0000)
sshd/sshd-lib.pl

index 80b08b9..da9a091 100644 (file)
@@ -269,7 +269,8 @@ if ($file) {
        return &check_pid_file($file);
        }
 else {
-       return &find_byname("sshd");
+       local ($rv) = &find_byname("sshd");
+       return $rv;
        }
 }