3 ms·
The 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
by dwattttt 2y ago
The 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.