3 ms·
Unlink with reference counting, not overwrite. This allows the program to "delete" itself but the file remains as an unnamed file on the drive until the last pr
by gvb 8y ago
Unlink with reference counting, not overwrite. This allows the program to "delete" itself but the file remains as an unnamed file on the drive until the last program that references it exits.
If the file name was the last hard link to the file, the file itself is deleted as soon as no program has it open.
Ref: https://en.wikipedia.org/wiki/Unlink_(Unix) https://en.wikipedia.org/wiki/Unlink_(Unix)