Rethinking race-free process signaling
Rethinking race-free process signaling
Posted Apr 13, 2019 15:01 UTC (Sat) by nix (subscriber, #2304)In reply to: Rethinking race-free process signaling by quotemstr
Parent article: Rethinking race-free process signaling
The problem is that a loop closing the first 1024 fds before exit is incredibly common. Almost everything written before O_CLOEXEC became commonplace does that. Are you willing to break everything written before then? I'm certainly not. People are using those programs.
Posted Apr 13, 2019 15:58 UTC (Sat)
by quotemstr (subscriber, #45331)
[Link]
Rethinking race-free process signaling
It's less of a problem when the FDs are closed just before exec. Fewer programs randomly close all FDs in steady-state execution, unforked.