Code::Blocks Forums

User forums => Help => Topic started by: Pecan on January 18, 2022, 07:29:30 pm

Title: Linux allows removal of open files.
Post by: Pecan on January 18, 2022, 07:29:30 pm
I'm trying to remove the temporary files left by clangd.
But I don't want to delete the logs and temp files that are currently open.

Linux is allowing me to "rm" files that are open and being used. Windows (thankfully) doesn't allow this.

What do I need to do on Linux to get it to disallow removal of open/active files?
Title: Re: Linux allows removal of open files.
Post by: jordi on January 18, 2022, 10:01:32 pm
Maybe this link can help you: https://www.gnu.org/software/libc/manual/html_node/Deleting-Files.html