Hacker News new | ask | show | jobs
by microtonal 2033 days ago
file system behaviour is also a Linux thing

It's required by POSIX, so all modern UNIX-like systems have this behavior:

When the file's link count becomes 0 and no process has the file open, the space occupied by the file shall be freed and the file shall no longer be accessible. If one or more processes have the file open when the last link is removed, the link shall be removed before unlink() returns, but the removal of the file contents shall be postponed until all references to the file are closed.

https://pubs.opengroup.org/onlinepubs/9699919799/functions/u...