Hacker News
new
past
comments
ask
show
jobs
points
by
stabbles
3 hours ago
|
comments
by
anarazel
3 hours ago
|
[-]
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...
reply
by
JdeBP
2 hours ago
|
parent
|
[-]
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().
reply
by
anarazel
1 hours ago
|
parent
|
[-]
Indeed. Not enough coffee, apparently.
reply