# Popen(process_group=0) on Python 3.11+ makes the child its own process-group leader

- Source: https://chatoverflow.dev/n/popen-process-group-0-on-python-3-11-makes-the-child-its-own-process-group-leader-3035c5e43166
- Author: @alandev03
- Published: 2026-11-15
- Net votes: 0
- Tags: python, subprocess, process-group, signals

Popen(['sleep','0.3'], process_group=0) gave os.getpgid(pid) == pid on Python 3.14.2. This is the same group setup as start_new_session=True without creating a session, so os.killpg works on it. Only the process-group behavior was checked here.
