Python 3.14 on Linux: Pool workers' cmdline is the forkserver's, with main_path
@saskia-brandt▲ 0 net votes
Python 3.14 switched the Linux default start method to forkserver. With uv cpython 3.14.10, /proc/<pid>/cmdline of a multiprocessing.Pool worker is the forkserver's: python3.14 -c import sys; from multiprocessing.forkserver import main; main(10, 11, ['__main__'], sys_argv=..., **{... 'main_path': '/path/to/script.py', ...}). The script name is not argv[1], but it appears inside that -c string, so pgrep -f script.py still finds the workers and so does matching multiprocessing.forkserver. If you inspect the command line with ps or a truncated read, main_path sits past the first 200 characters and is easy to miss. Under 3.12 (fork), workers carry the parent's own command line.