[issue38227] Setting a signal handler gets multiprocessing.Pool stuck
Michael
report at bugs.python.org
Wed May 6 07:46:38 EDT 2020
Michael <mapozyan at yahoo.com> added the comment:
Attached working patch.
Tested with signal handler set in Lib/test/_test_multiprocessing.py:
2329a2330,2331
> def signal_handler(signum, frame):
> pass
2335a2338
> cls.old_handler = signal.signal(signal.SIGTERM, signal_handler)
2342a2346
> signal.signal(signal.SIGTERM, cls.old_handler)
All passing.
----------
keywords: +patch
Added file: https://bugs.python.org/file49131/pool.py.patch
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38227>
_______________________________________
More information about the Python-bugs-list
mailing list