代码语言:javascript复制
if (function_exists('cli_set_process_title')) {
cli_set_process_title("superman php master process");
} // Need proctitle when php<=5.5 .
elseif (extension_loaded('proctitle') && function_exists('setproctitle')) {
setproctitle("superman php master process");
}
一般是在用php做多进程处理时可能会用到