this post was submitted on 07 Dec 2023
1131 points (98.4% liked)

memes

9343 readers
1616 users here now

Community rules

1. Be civilNo trolling, bigotry or other insulting / annoying behaviour

2. No politicsThis is non-politics community. For political memes please go to !politicalmemes@lemmy.world

3. No recent repostsCheck for reposts when posting a meme, you can only repost after 1 month

4. No botsNo bots without the express approval of the mods or the admins

5. No Spam/AdsNo advertisements or spam. This is an instance rule and the only way to live.

Sister communities

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] joyjoy@lemm.ee 18 points 8 months ago (2 children)

Windows gives a permission error if you try to delete or edit a file that's being executed. It has no complaints about moving it though.

[–] Sheeple@lemmy.world 12 points 8 months ago

This. Sometimes it just doesn't tell you that shit is still running in the background

[–] Neato@kbin.social 3 points 8 months ago* (last edited 8 months ago) (1 children)

That'd be fine, though? Not an OS expert but if you move it, the computer knows where it goes any can pause and read/writes and utilize RAM for it's in-use version. But if it tries the same thing when you deleted it, it's going to have nowhere to put the results of whatever it's doing. Also if the computer is just reading a file, it may assume you might not want to delete it.

[–] grue@lemmy.world 2 points 8 months ago

Not an OS expert but if you move it, the computer knows where it goes any can pause and read/writes and utilize RAM for it’s in-use version.

It's more like it doesn't actually go anywhere on-disk; only the tag in the filesystem pointing to it changes. I'm pretty sure once the program has an open file handle, it doesn't care about the path anymore anyway.