News for hackers. Stuff that matters.
Re:Windows is the strangest, or hardest, operating system to... by programmer_dude on Wednesday November 30, 2022 @10:45AM (#33802330)
> since it could break another process.

This isn't how things work on Linux. It keeps the file "alive" as long as there is at least one process using it. Any processes which do not have the file open already will not be able to see it but those that do can keep using it. The file will be deleted when all processes release the file.

Re:Windows is the strangest, or hardest, operating system to... by lizknope on Wednesday November 30, 2022 @11:11AM (#33802795)
I remember getting the "text file busy" message on various Unix systems in the 1990's

https://stackoverflow.com/questions/16764946/what-generates-...

Re:Windows is the strangest, or hardest, operating system to... by mort96 on Wednesday November 30, 2022 @11:48AM (#33803436)
That's about modifying files though, not deleting files. If you delete an executable that's currently running and create a new one with the same path, that's fine. If you try to modify an executable that's currently running, the kernel won't let you.
Re:Windows is the strangest, or hardest, operating system to... by yencabulator on Wednesday November 30, 2022 @06:39PM (#33809691)
Not normally on delete. (Most common exception: you're trying to delete an active mountpoint.)

Where most people see that is attempting to mutate a currently running executable. That's forbidden, as it would lead to executing essentially random code. You can replace what file the filename points to, with rename.