diff options
author | Antoine Pitrou <pitrou@free.fr> | 2018-05-04 11:00:50 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-04 11:00:50 (GMT) |
commit | 9d3627e311211a1b4abcda29c36fe4afe2c46532 (patch) | |
tree | 26f76c94bb55ee8b242f044efa26cfd8b08e9d26 /Lib/multiprocessing | |
parent | 491bbedc209fea314a04cb3015da68fb0aa63238 (diff) | |
download | cpython-9d3627e311211a1b4abcda29c36fe4afe2c46532.zip cpython-9d3627e311211a1b4abcda29c36fe4afe2c46532.tar.gz cpython-9d3627e311211a1b4abcda29c36fe4afe2c46532.tar.bz2 |
bpo-33332: Add signal.valid_signals() (GH-6581)
Diffstat (limited to 'Lib/multiprocessing')
-rw-r--r-- | Lib/multiprocessing/resource_sharer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/multiprocessing/resource_sharer.py b/Lib/multiprocessing/resource_sharer.py index 6d99da1..730b2aa 100644 --- a/Lib/multiprocessing/resource_sharer.py +++ b/Lib/multiprocessing/resource_sharer.py @@ -136,7 +136,7 @@ class _ResourceSharer(object): def _serve(self): if hasattr(signal, 'pthread_sigmask'): - signal.pthread_sigmask(signal.SIG_BLOCK, range(1, signal.NSIG)) + signal.pthread_sigmask(signal.SIG_BLOCK, signal.valid_signals()) while 1: try: with self._listener.accept() as conn: |