Tag
close-on-exec
- Jun 27, 2026 The Close-on-Exec Race and Why Descriptor Inheritance Is a Hazard How exec preserves every descriptor a process holds, why setting the flag after fork is too late, and what O_CLOEXEC closes that fcntl cannot. computing history
- Oct 24, 2024 fork and exec: Which Descriptors Survive and Why Between fork and exec a child inherits every open descriptor, and only a per-entry flag can prevent it. The inheritance rules, the leak they cause, and the atomicity problems that follow from closing descriptors after the fact. systems programming