Process Groups and Sessions
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 -- -$$October 31, 2026
Killing a parent script does not automatically kill its spawned child processes unless you target the entire Process Group: