3 ms·
I don't understand how that could happen, since the original file handle would have been invalidated. Which operating system did you experience this under and
by jsndnnd 2y ago
I don't understand how that could happen, since the original file handle would have been invalidated.
Which operating system did you experience this under and was it the operating system, your Libc or what else in the stack which caused this?
- dwattttt 2y agoThe scenario is that after the original file handle is closed, a new open occurs and the file is assigned the same handle value. Then code acting on the stale handle of the first file closes it, and accidentally closes the new file instead.