summaryrefslogtreecommitdiffstats
path: root/Lib/multiprocessing/resource_sharer.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/multiprocessing/resource_sharer.py')
-rw-r--r--Lib/multiprocessing/resource_sharer.py2
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: