r/C_Programming • u/Materac_YT • Sep 25 '26
POSIX exec
hey guys i am trying to write POSIX compatible program and i need to close the fds before i exec, i cant guarante they all fd's are O_CLOEXEC becouse i use libraries
0
Upvotes
View all comments
Show parent comment
1
u/lorololl Sep 25 '26
Pre load a shared object that defines open to have O_CLOEXEC as a default