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

Modify SIGTERM trap to avoid segfaults #131

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rahmanrafi
Copy link

Fixes #127

Currently, the trap kills the main process and tries to call the signal handler (term_handler); this seems to cause a segmentation fault, which is being logged to the host's syslog.

This update is a simple change to kill the most recent background process (if any) instead, and then calls term_handler, which will terminate the main process. With this change, no segfault errors are logged in the host machine.

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.

segfault in ld-musl-x86_64.so.1
1 participant