Title: forkserver not reused in child processes
Type: behavior Stage:
Components: Library (Lib) Versions: Python 3.8
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: cchomey
Priority: normal Keywords:

Created on 2020-10-29 00:40 by cchomey, last changed 2020-10-29 23:36 by cchomey.

File name Uploaded Description Edit cchomey, 2020-10-29 23:36
Messages (1)
msg379851 - (view) Author: Colin (cchomey) Date: 2020-10-29 00:40
The docstring on Forkserver.ensure_running states that a child process will use the forkserver process started by its parent:

Make sure that a fork server is running.

This can be called from any process.  Note that usually a child
process will just reuse the forkserver started by its parent, so
ensure_running() will do nothing.

Link to definition:

That is not the behavior that I am seeing, however. I'm seeing each child (that start a process itself) will first spawn a *new* forkserver.
Date User Action Args
2020-10-29 23:36:31cchomeysetfiles: +
2020-10-29 23:36:23cchomeysetfiles: -
2020-10-29 00:40:06cchomeycreate