DevOps · interactive
Processes, signals and the process tree
Every Linux process has a parent, back to PID 1. Stopping a process means sending it a signal, and what happens next depends on which signal and on whether parents clean up after their children.
$ ps -eo pid,ppid,stat,cmd --forest
- 1ppid 0systemdrunning
- 812ppid 1node server.jsrunning
- 820ppid 812worker 1running
- 821ppid 812worker 2running
systemd (PID 1) started the server, which forked two workers. Each process knows its parent (PPID).
What happens
Step 2 of 4 · read left to right
In production
Tools and technologies
Every container and service manager works with these signals.
Not tied to one language — use these names when you search docs or design a system.