[issue39535] multiprocessing.Process file descriptor resource leak

Robert Pierce report at bugs.python.org
Mon Feb 3 04:56:03 EST 2020


Robert Pierce <robert.pierce at decisionnext.com> added the comment:

It appears as if the problem is the sentinel FIFO opened by (for example) multiprocessing.popen_fork.Popen._launch(). It registers a finalization class to close the sentinel on garbage collection. Instead, it should be closed in poll() or wait() when the child process is reaped and known to be dead. The sentinel serves no purpose after the child is reaped, and waiting till garbage collection means that programs forking large numbers of processes cannot control file descriptor utilization.

----------

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


More information about the Python-bugs-list mailing list