[New-bugs-announce] [issue39535] multiprocessing.Process file descriptor resource leak
report at bugs.python.org
Mon Feb 3 04:21:12 EST 2020
New submission from Robert Pierce <robert.pierce at decisionnext.com>:
multiprocessing.Process opens a FIFO to the child. This FIFO is not documented the the Process class API and it's purpose is not clear from the documentation. It is a minor documentation bug that the class creates non-transparent resource utilization.
The primary behavioral bug is that incorrect handling of this FIFO creates a resource leak, since the file descriptor is not closed on join(), or even when the parent Process object goes out of scope.
The effect of this bug is that programs generating large numbers of Process objects will hit system resource limits of open file descriptors.
assignee: docs at python
components: Documentation, Library (Lib)
nosy: Robert Pierce, docs at python
title: multiprocessing.Process file descriptor resource leak
type: resource usage
versions: Python 3.6
Added file: https://bugs.python.org/file48878/proc_test.py
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce