Overview of dumb-init
masterdumb-init is a lightweight, statically-linked process supervisor and init system written in C. It is designed to run as PID 1 inside minimal container environments (like Docker) to solve two primary issues:
- Signal Handling: Prevents processes from ignoring signals (like
SIGTERM) because they are running as PID 1, which requires explicit signal handlers to act on them. - Zombie Process Reaping: Ensures that orphaned processes are properly reaped by acting as a proper init system, preventing the accumulation of defunct/zombie processes in the process table.