Hi, i would like to ask for your expert knowledge.
How to prevent file descriptor leaks in a multi-threaded application that fork+exec. Quick answer is surely "use O_CLOEXEC" to close those file descriptors on exec. But how does this work with fopen in a portable way ? GNU libc has the 'e' flag for exactly this. How about other non-GNU OSes / alternative C libraries ? Regards, Tim
signature.asc
Description: OpenPGP digital signature