I am on Red hat GNU/linux 2.6.32-431.29.2.el6.x86_64.
Recently - One of my process hung. This process was using few files from a directory - say DIR-1 . While process was in hung state, I moved ( and not copied ) these files to a backup dir - say DIR-BKP and added newer version of the files to DIR-1 directory. Note these newer version of files have exactly same as the ones from DIR-BKP folder.
Since my process is still in hung state during all this, what will happen if I start a new process, which is going to use files from DIR-1 ? Will the new process use files from DIR-BKP or DIR-1 ? Since old process is still using older version of files ( albeit they are moved to DIR-BKP directory ) , not sure if the new process will use newer version of files or will keep using older version.