Unix should not have any problems overriding the executable file of a running process.
When you disconnect a file, the directory entry is deleted, but the inode and the underlying data are not freed until all existing file references (i.e. hard links and open descriptors) are freed.
source
share