cpython/Lib/multiprocessing
Miss Islington (bot) be7314ffac
[3.12] gh-127586: multiprocessing.Pool does not properly restore blocked signals (try 2) (GH-128011) (#128299)
gh-127586: multiprocessing.Pool does not properly restore blocked signals (try 2) (GH-128011)

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.
(cherry picked from commit aeb9b65aa2)

Co-authored-by: Stephen Hansen <stephen.paul.hansen@gmail.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
2024-12-29 11:02:59 -08:00
..
dummy
__init__.py
connection.py [3.12] Add the missing f on an f-string error message in multiprocessing. (GH-127462) (#127465) 2024-11-30 23:50:33 -08:00
context.py
forkserver.py [3.12] gh-117378: Fix multiprocessing forkserver preload sys.path inheritance. (GH-126538) (GH-126633) 2024-11-10 00:13:26 +00:00
heap.py
managers.py [3.12] gh-71936: Fix race condition in multiprocessing.Pool (GH-124973) (GH-126870) 2024-11-15 14:04:35 +00:00
pool.py
popen_fork.py
popen_forkserver.py
popen_spawn_posix.py
popen_spawn_win32.py [3.12] gh-113009: Fix multiprocessing Process.terminate() on Windows (GH-113128) (#113177) 2023-12-15 15:21:02 +00:00
process.py
queues.py [3.12] gh-114440: Close writer pipe in multiprocessing.Queue, not concurrent.futures (GH-114489) 2024-01-24 13:21:10 +01:00
reduction.py
resource_sharer.py [3.12] gh-101225: Increase the socket backlog when creating a multiprocessing.connection.Listener (GH-113567) (#114018) 2024-01-14 16:29:15 +01:00
resource_tracker.py [3.12] gh-127586: multiprocessing.Pool does not properly restore blocked signals (try 2) (GH-128011) (#128299) 2024-12-29 11:02:59 -08:00
shared_memory.py
sharedctypes.py
spawn.py
synchronize.py [3.12] gh-125679: multiprocessing Lock and RLock - fix invalid representation string on MacOSX. (GH-125680) (#126534) 2024-11-07 09:50:46 +00:00
util.py [3.12] gh-113421: Fix multiprocessing logger for "%(filename)s" (GH-113423) (GH-113450) 2023-12-24 10:23:32 +00:00