





















> for example you can posix_spawn_file_actions_addclose() to close individual fds, but you can't do the equivalent of close_range()
I wrote a clone of posix_spawn with some extra extensions, like specifying which FDs to keep, and close all the remaining ones: https://github.com/sionescu/libfixposix/blob/master/src/i...
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。