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

Make worker kill better #107

Merged
merged 1 commit into from
Jul 25, 2024
Merged

Make worker kill better #107

merged 1 commit into from
Jul 25, 2024

Conversation

Lensual
Copy link
Contributor

@Lensual Lensual commented Jul 16, 2024

from #78


kill -9 is not recommend, syscall.Kill SIGTERM instead of.

@sunshinexcode
Copy link
Collaborator

@Lensual
syscall.Kill 能正常 kill 掉进程吗? 我这边等有空了, 再验证一下, 没问题的话, 可以合入

@Lensual
Copy link
Contributor Author

Lensual commented Jul 17, 2024

@sunshinexcode
syscall.Kill 原理上和 kill 命令是一样的,但是这里我把 9 SIGKILL 换成了 15 SIGTERM 。SIGTERM 允许进程执行正常退出流程,关闭资源、完成io同步等,而SIGKILL会立即、强制杀死进程。

Copy link
Collaborator

@sunshinexcode sunshinexcode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@plutoless plutoless merged commit 7822afd into TEN-framework:main Jul 25, 2024
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

Successfully merging this pull request may close these issues.

3 participants