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

Fix worker unexpected shutdown. #42

Merged
merged 1 commit into from Jan 12, 2023
Merged

Fix worker unexpected shutdown. #42

merged 1 commit into from Jan 12, 2023

Conversation

jmjoy
Copy link
Member

@jmjoy jmjoy commented Jan 12, 2023

Fix worker unexpected shutdown problem mentioned in:

apache/skywalking#10260
apache/skywalking#10109

@burque98 @jmt33

The reason is that when the pm mode used by php-fpm is dynamic or ondemand, when the pool process exits, MSHUTDOWN will be called, and this hook will kill the worker process.

Now this action is removed, replace with libc::prctl(libc::PR_SET_PDEATHSIG, libc::SIGTERM);.

@jmjoy jmjoy added this to the 0.3.0 milestone Jan 12, 2023
@jmjoy jmjoy added the bug Something isn't working label Jan 12, 2023
@jmjoy jmjoy marked this pull request as ready for review January 12, 2023 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants