Skip to content

bpo-43390: Set SA_ONSTACK in PyOS_setsig - #24730

Merged
gpshead merged 2 commits into
python:masterfrom
gpshead:43390-sa_onstack
Mar 5, 2021
Merged

bpo-43390: Set SA_ONSTACK in PyOS_setsig#24730
gpshead merged 2 commits into
python:masterfrom
gpshead:43390-sa_onstack

Conversation

@gpshead

@gpsheadgpshead commented Mar 3, 2021

Copy link
Copy Markdown
Member

Set the SA_ONSTACK flag in PyOS_setsig for the CPython VM's
default signal handlers. This is friendlier to other in-process code that an
extension module or embedding use could pull in (such as Golang's cgo) where
tiny thread stacks are the norm and sigaltstack() has been used to provide for
signal handlers. This is a no-op change for the vast majority of processes
that don't use sigaltstack.

https://bugs.python.org/issue43390

This is friendlier to other in-process code that an extension module or
embedding use could pull in such as Cgo where tiny stacks are the norm
and sigaltstack() has been used to provide for signal handlers.
@gpsheadgpshead added the type-feature A feature request or enhancement label Mar 3, 2021
@gpsheadgpshead self-assigned this Mar 3, 2021
@gpshead
gpshead merged commit 02ac6f4 into python:masterMar 5, 2021
@gpshead
gpshead deleted the 43390-sa_onstack branch March 5, 2021 05:49
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-featureA feature request or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@gpshead@the-knights-who-say-ni@bedevere-bot