zlacker

[parent] [thread] 1 comments
1. matu3b+(OP)[view] [source] 2022-09-10 23:52:35
so does posix_spawn, since you can leak file descriptors into parallel spawning threads/processes before the execve (where they are closed if having O_CLEXEC).
replies(1): >>lgg+09
2. lgg+09[view] [source] 2022-09-11 01:36:15
>>matu3b+(OP)
Yeah, that is a problem, and it is totally fixable. Checkout `POSIX_SPAWN_CLOEXEC_DEFAULT` on macOS for an example. Again, just because there are API deficiencies doesn't mean that the idea is wrong.
[go to top]