Disclaimer: I am mainly a linux/web developer.
Windows has this "nice" feature where it denies permission to delete any file that is held open by any process. So if an antivirus hits the wrong file at the wrong time, some random program might misbehave and possibly crash.
Am I right? Are there plans to fix this?
Do any of you find this acceptable, or, how could it possibly seem a good idea at the time?
Edit:
It works very differently on Unix, and has been so for decades.
As an example:
- process 1 opens foo.txt, for read or write, or both, doesn't matter
- process 2 deletes the file
- the file is unlinked from the filesystem
- process 1 keeps reading and/or writing, the file still exists, and it can grow as long as there's room on the disk. It's just not reachable from other processes that have not already a file handle to it.
- when process 1 closes the file, it won't be accessible from anywhere
Actually, a common usage pattern for temporary files on Unix is: open-remove-read/write-close.