logoalt Hacker News

dupedtoday at 1:44 PM1 replyview on HN

All you need for this to occur is the window where both renames occurs overlap. A system polling to check if a, b, c, and d exist while the renames are happening might find all four of them.


Replies

jstimpfletoday at 2:20 PM

Assuming that the two `mv` commands are run in sequence, there shouldn't be any possibility for a and d to be observed "at once" (i.e. first d and then afterwards still a, by a single process).