Skip to content

fix: set the SA_ONSTACK flag#116

Merged
Pithikos merged 1 commit intoPithikos:masterfrom
dunglas:fix/SA_ONSTACK
Dec 18, 2023
Merged

fix: set the SA_ONSTACK flag#116
Pithikos merged 1 commit intoPithikos:masterfrom
dunglas:fix/SA_ONSTACK

Conversation

@dunglas
Copy link
Contributor

@dunglas dunglas commented Dec 19, 2022

Many virtual machines, including Go VM, depend on signals using SA_ONSTACK . This flag allows a thread to define a new alternate signal stack. Many argue that SA_ONSTACK should be a default, but it's not the case (yet).

This patch sets the SA_ONSTACK flag when C-Thread-Pool calls sigaction().

Python merged a similar patch (python/cpython#24730) in 2021 (Python 3.10+) for the same reasons, and I did a similar patch for PHP, with no issues.

@Pithikos Pithikos merged commit 6c9410d into Pithikos:master Dec 18, 2023
@dunglas dunglas deleted the fix/SA_ONSTACK branch December 18, 2023 10:52
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