what the double-fork?
Summary
erock discusses the double-fork technique used to daemonize a process in zmx, detailing what daemons, sessions, and controlling terminals are, and why a second fork guarantees no controlling terminal. The post covers the fork/setsid/fork sequence, the cleanup steps after daemonization, and references to related projects like zmx and abduco.