Removing an executable while it runs
Quoted 10 lines · Mike Fedyk
Quoted 4 lines
No. Some will refuse to unlink running app (or another opened file). Some will unlink it immediately, and app then dies when it needs page-in something. Some works as POSIX mandates.
POSIX behaviour would be in ext[23], reiserfs, xfs, (and probably ffs, ntfs). Can someone verify which FSes have what behaviour?
I'd guess that vfat (fat16/28--err, 32), nfs, and hfs would delete immediately.
ncpfs (and afaik smbfs) will refuse to delete file. For local filesystems there is no excuse to not support POSIX semantic on unlink if they do not store data together with filename.
Petr Vandrovec [email protected]