On Sat, 20.03.10 12:42, Till Maas (opensou...@till.name) wrote:

> > Unix sockets should definitely be cleaned up on reboot. Hence they
> > belong in /tmp better than in /var/tmp.
> 
> Why do they need to be cleaned up on reboot?

After the program that listened on them exited they are useless and
cannot be reused, they hence *must* be removed before another program
can listen on them again.

> The problem with sharing files between applications using /tmp is this
> specification:
> 
> http://www.pathname.com/fhs/pub/fhs-2.3.html#TMPTEMPORARYFILES
> | Programs must not assume that any files or directories in /tmp are
> | preserved between invocations of the program.
> 
> So in case there will be a file system for /tmp that automatically
> removes files once they are not open anymore, abusing /tmp for this
> will fail.

Uh? First of all, such an fs does not exist.

Secondly, as mentioned a unix socket is useless in the fs after the
program that listened on it exited, hence automatically deleting the
unix socket as soon as it exited would actually be a good idea.

Lennart

-- 
Lennart Poettering                        Red Hat, Inc.
lennart [at] poettering [dot] net
http://0pointer.net/lennart/           GnuPG 0x1A015CC4
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Reply via email to