/** * 过去当前进程的pid */ private static function get_pid() { if (!function_exists("posix_getpid")) { self::exit2p("Please install posix extension."); } self::$pid = posix_getpid(); }