We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54008b1 commit 5d6406cCopy full SHA for 5d6406c
Lib/multiprocessing/resource_tracker.py
@@ -167,8 +167,12 @@ def _launch(self):
167
fds_to_pass.append(r)
168
# process will out live us, so no need to wait on pid
169
exe = spawn.get_executable()
170
- args = [exe] + util._args_from_interpreter_flags()
171
- args += ['-c', cmd % r]
+ args = [
+ exe,
172
+ *util._args_from_interpreter_flags(),
173
+ '-c',
174
+ f'from multiprocessing.resource_tracker import main;main({r})',
175
+ ]
176
# bpo-33613: Register a signal mask that will block the signals.
177
# This signal mask will be inherited by the child that is going
178
# to be spawned and will protect the child from a race condition
0 commit comments