[issue35493] multiprocessing.Pool._worker_handler(): use SIGCHLD to be notified on worker exit

Antoine Pitrou report at bugs.python.org
Fri Dec 14 06:39:03 EST 2018


Antoine Pitrou <pitrou at free.fr> added the comment:

How do you use SIGCHLD on Windows?

There is actually a portable (and robust) solution: use Process.sentinel
https://docs.python.org/3/library/multiprocessing.html#multiprocessing.Process.sentinel

There is another issue: Pool is currently subclassed by ThreadPool. You'll probably have to make the two implementations diverge a bit.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35493>
_______________________________________


More information about the Python-bugs-list mailing list