Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php bin/server start 之后,由于内部服务配置错误的一些主动抛异常,导致该服务无法ctrl+c退出,需要不断kill进程 #121

Open
jinand10 opened this issue May 22, 2019 · 3 comments

Comments

@jinand10
Copy link

请问这个如何优化呢?

@JanHuang
Copy link
Member

kill -15 master pid 即可

@jinand10
Copy link
Author

kill -15 master pid 即可

你好,只能通过kill去实现退出吗?能否可以实现启动服务之后一些程序内部主动抛异常而自动退出呢?

@longxinH
Copy link
Member

如果是致命错误 swoole 会自动重启进程,内部的业务错误,需要自己try catch去捕捉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants