]> git.mxchange.org Git - friendica.git/blobdiff - include/pidfile.php
Degrade priority step by step
[friendica.git] / include / pidfile.php
index 3093e149aeb869acc2c35ca0a49e9087642e7cb6..7157a6e591a2eeb6f830798c7347f002b79f2be2 100644 (file)
@@ -8,7 +8,7 @@ class pidfile {
 
                if (file_exists($this->_file)) {
                        $pid = trim(@file_get_contents($this->_file));
-                       if (($pid != "") AND posix_kill($pid, 0)) {
+                       if (($pid != "") && posix_kill($pid, 0)) {
                                $this->_running = true;
                        }
                }
@@ -38,4 +38,3 @@ class pidfile {
                        return(posix_kill(file_get_contents($this->_file), SIGTERM));
        }
 }
-?>