mirror of
https://github.com/sheumann/hush.git
synced 2025-03-12 09:29:36 +00:00
We do this by maintaining a mask (for each pid) giving the fds to be closed on exec. We wrap functions that close fds so that their close-on-exec bits can be cleared at that point. This implementation may close the fds even if the execve operation ultimately fails.