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: hide relaySignal from process.listeners() #194

Merged
merged 1 commit into from Mar 12, 2023

Conversation

jakzo
Copy link
Contributor

@jakzo jakzo commented Mar 8, 2023

Closes #193

Continues the approach from #123 and hides the relaySignal listener added by tsx from process.listeners() which is what the signal-exit module uses to determine whether to proceed with exiting the program. I've tested and confirmed that it fixes the issue.

https://github.com/tapjs/signal-exit/blob/8d4bd9c/index.js#L121

@privatenumber privatenumber changed the title fix: hide relaySignal from process.listeners() fix: hide relaySignal from process.listeners() Mar 12, 2023
@privatenumber privatenumber merged commit b6793b2 into privatenumber:develop Mar 12, 2023
2 checks passed
@privatenumber
Copy link
Owner

🎉 This PR is included in version 3.12.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

@privatenumber
Copy link
Owner

Thanks for the well documented issue and fix @jakzo !

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SIGTERM does not cause exit when signal-exit is used
2 participants