Cml\Tools\Daemon\ProcessManage::getPid PHP Method

getPid() private static method

获取进程id
private static getPid ( ) : integer
return integer
    private static function getPid()
    {
        if (!is_file(self::$pidFile)) {
            return 0;
        }
        $pid = intval(file_get_contents(self::$pidFile));
        return $pid;
    }