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

[libedit] Register signal handler with SA_ONSTACK flag. #40

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

Conversation

tkoeppe
Copy link

@tkoeppe tkoeppe commented Aug 8, 2024

This allows the handler to use the alternate signal stack if one is available in the handling thread, but has no effect otherwise.

This change makes the signal handler respect existing choices better. Specifically, this allows signal handlers to be set when the process includes a Go runtime, since Go enforces that all signal handlers in the process use the SA_ONSTACK flag (e.g. see golang/go#20400).

This allows the handler to use the alternate signal stack if one is
available in the handling thread, but has no effect otherwise.

This change makes the signal handler respect existing choices better.
Specifically, this allows signal handlers to be set when the process
includes a Go runtime, since Go enforces that _all_ signal handlers in
the process use the SA_ONSTACK flag (e.g. see golang/go#20400).
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.

1 participant