Process Groups and Sessions

Updated

October 31, 2026

Process Groups and Sessions

Killing a parent script does not automatically kill its spawned child processes unless you target the entire Process Group:

# Kill an entire process group (negative PID):
kill -TERM -- -$$