Is it possible to have file removed upon process exit?

Dimitry Andric dim at FreeBSD.org
Sat Nov 27 17:18:49 UTC 2010


On 2010-11-25 21:14, Xin LI wrote:
> For certain applications it is sometimes desirable to (e.g. for unix
> domain sockets) have file removed when the process quit, regardless
> whether the process is quit cleanly.  Is there a clean way to do this?

Maybe your process could be the child of a parent which cleans up
afterwards?  (This is an analogy from real life. ;)


More information about the freebsd-hackers mailing list