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

Linux版网站-Go项目-服务状态停止的修改建议 #115

Open
zhangxa opened this issue Jan 9, 2023 · 0 comments
Open

Linux版网站-Go项目-服务状态停止的修改建议 #115

zhangxa opened this issue Jan 9, 2023 · 0 comments

Comments

@zhangxa
Copy link

zhangxa commented Jan 9, 2023

路径:panel/class/projectModel/goModel.py文件
667行左右kill_pids方法下,建议将p.kill()改为p.terminate()
有些go程序可能需要捕获运行终止的信号以完成相关业务逻辑,kill的话相当于直接杀死进程,无法捕获终止信号,用terminate则可以。
本人已测试,无问题。

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

1 participant