diff options
author | Stephen Hansen <stephen.paul.hansen@gmail.com> | 2024-12-15 19:53:22 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-15 19:53:22 (GMT) |
commit | 46006a1b355f75d06c10e7b8086912c483b34487 (patch) | |
tree | 03efaaf9e69c71002d4babf7e76e028a5a406f80 /Misc/NEWS.d/3.6.5rc1.rst | |
parent | 7b8bd3b2b81f4aca63c5b603b56998f6b3ee2611 (diff) | |
download | cpython-46006a1b355f75d06c10e7b8086912c483b34487.zip cpython-46006a1b355f75d06c10e7b8086912c483b34487.tar.gz cpython-46006a1b355f75d06c10e7b8086912c483b34487.tar.bz2 |
gh-127586: properly restore blocked signals in resource_tracker.py (GH-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
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Diffstat (limited to 'Misc/NEWS.d/3.6.5rc1.rst')
0 files changed, 0 insertions, 0 deletions