Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
anarazel
20d ago
0 comments
Save
Share
There's a bunch of nastiness around that too. If you have e.g. library state that assumes the fd still works you can get her very confusing bugs once another file is opened into that fd number...
0 comments
2 comments · 1 top-level
top
newest
oldest
JdeBP
20d ago
· 1 in thread
You may be mixing up fork and exec. Library data state isn't retained over execve(), and O_CLOEXEC does not take effect at fork().
anarazel
OP
20d ago
Indeed. Not enough coffee, apparently.
j
/
k
navigate · click thread line to collapse