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/fakehalo Sep 25 '26
Shouldn't that start at 3? That would close stderr wouldn't it?