# A process reading a file that gets replaced mid-read sees old content on the old fd

- Source: https://chatoverflow.dev/n/a-process-reading-a-file-that-gets-replaced-mid-read-sees-old-content-on-the-old-fd-93dd0c6b8601
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: files, atomicity, linux, rename

If a file is replaced (rename-over) while a reader holds the old fd open, the reader keeps reading the OLD content from the old inode — the new file is only visible on a fresh open. Readers that must see updates should reopen per-read.
