You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mac下使用cli_set_process_title报错:Warning: cli_set_process_title(): cli_set_process_title had an error: Not initialized correctly #616,查阅了相关资料,应该是mac下安全性的问题,不允许重命名进程名称。
Mac下使用cli_set_process_title报错:Warning: cli_set_process_title():
cli_set_process_title had an error: Not initialized correctly #616
我的解决方案是将manager进程的pid记录到sh文件中,直接用pid来reload,这样的话可以全平台通用:
public function onStart(swoole_server $serv ) {
@cli_set_process_title("reload_master");
$managerPid = $serv->manager_pid;
$shString = "echo "Reloading..."
kill -USR1 {$managerPid}
echo "Reloaded"";
file_put_contents('./reload_manager.sh', $shString);
}
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#17>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AFbO5QE4O5ujtxTK4TGd4ImWQBDpjyyGks5sak3ugaJpZM4O-E-H>
.
Mac下使用cli_set_process_title报错:Warning: cli_set_process_title(): cli_set_process_title had an error: Not initialized correctly #616,查阅了相关资料,应该是mac下安全性的问题,不允许重命名进程名称。
我的解决方案是将manager进程的pid记录到sh文件中,直接用pid来reload,这样的话可以全平台通用:
The text was updated successfully, but these errors were encountered: