Skip to content

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Dec 15, 2024

  • Correct pthread_sigmask in resource_tracker to restore old signals

Using SIG_UNBLOCK to remove blocked "ignored signals" may accidentally
cause side effects if the calling parent already had said signals
blocked to begin with and did not intend to unblock them when
creating a pool. Use SIG_SETMASK instead with the previous mask of
blocked signals to restore the original blocked set.

  • Adding resource_tracker blocked signals test
    (cherry picked from commit 46006a1)

Co-authored-by: Stephen Hansen [email protected]
Co-authored-by: Peter Bierma [email protected]
Co-authored-by: Gregory P. Smith [email protected]

….py (pythonGH-127587)

* Correct pthread_sigmask in resource_tracker to restore old signals

Using SIG_UNBLOCK to remove blocked "ignored signals" may accidentally
cause side effects if the calling parent already had said signals
blocked to begin with and did not intend to unblock them when
creating a pool. Use SIG_SETMASK instead with the previous mask of
blocked signals to restore the original blocked set.

* Adding resource_tracker blocked signals test
(cherry picked from commit 46006a1)

Co-authored-by: Stephen Hansen <[email protected]>
Co-authored-by: Peter Bierma <[email protected]>
Co-authored-by: Gregory P. Smith <[email protected]>
@ZeroIntensity
Copy link
Member

@gpshead FYI, this broke buildbots, I'm marking this as DO-NOT-MERGE.

@vstinner
Copy link
Member

What's the status of this backport? Should it be merged or closed?

@hugovk
Copy link
Member

hugovk commented Dec 20, 2024

The first PR to main was reverted: #127983

I suggest closing and backporting the second attempt: #128011

@hugovk hugovk closed this Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants