Self Destructing Process Unix C -


I want to delete an executable after the process has started.

I unlink and it works fine, but I want my execution to continue.

Is the use of unlink approach correct? Is there any problem in using this approach?

On UNIX, no problem should be unlinked Running process executable

When you unlink a file, the directory entry is removed, but all existing reference files (i.e. hard links and open handles) are issued inode and underlying data.

Comments