- Published on
Investigation · Part 20 of 20 · From source to a running process
What Happens When a Process Exits
A line printed twice, output lost with _exit, a Drop that never runs, a zombie without memory. I followed the end of C and Rust processes with strace and /proc: stdio buffers, exit handlers, exit codes, exit_group, and what the kernel cleans up.