- cross-posted to:
- programmerhumor@lemmy.ml
“Hey Linux, can you just delete this file please?”
“Sure thing bud, a program is using it, it’s ok, I will just unlink the inode anyway, the program can still access it until it closes the file”
This is honestly one of my favorite features of the linux filesystem. As a dev it makes things like replacing and hot-reloading plugins way easier.
It turns out you can kind of get the same functionality on Windows if you rename the open file and place the new one with the original name, but it’s a bit of a hack.
Me: I’ve closed the program, now please delete the file
Windows: ok, give me half an hour, it’s not easy to delete 500 MB
… And the file is back open somehow. Only now the program throws an error when Windows launches, yet still leeches resources.
Here’s an incredibly animated chart of how poorly I’m doing. Note that I seem to throttle the operation every 5 seconds or so.
Explanation? No, no. Haha. No. We don’t do anything like that.




