Skip to content

support windows stop signal atexit callback #723

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

Merged
merged 1 commit into from
Apr 16, 2025

Conversation

House-Men
Copy link
Contributor

Windows环境-s=stop信号无条件TerminateProcess会导致hmain.c内部以及用户业务层设置的atexit完全失效,所以解除了被注释的TermEvent处理方式,并且增加了等待结束触发信号只有2s超时才执行TerminateProcess强制结束,反之则只会触发正常的exit->atexit回调。

@ithewei ithewei merged commit c9f07f9 into ithewei:master Apr 16, 2025
6 checks passed
@House-Men House-Men deleted the patch-8 branch April 16, 2025 17:13
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.

2 participants