Re: Is /dev/shm needed?

Jason Rivard (jrivard@nikki.com)
Sun, 16 Dec 2001 23:14:32 -0500


I delete all files in /tmp on reboot +
I delete all of <user>'s files in /tmp if <user> has no running
processes when <user> logs out.

>>> "H. Peter Anvin" <hpa@zytor.com> 12/16/01 09:26PM >>>
Followup to: <E16Fl8j-0000nA-00@phalynx>
By author: Ryan Cumming <bodnar42@phalynx.dhs.org>
In newsgroup: linux.dev.kernel
>
> On December 16, 2001 15:47, Adam Schrotenboer wrote:
> > I may be wrong about /tmp as well, but I have come to think that it
is data
> > that ought be discarded after logout, and have sometimes considered
writing
> > a script for it in the login/logout scripts.
>
> System daemons can legally use /tmp, and they may not apprechiate
having
> their files removed from underneath them everytime someone telnets
in. ;)
>

Not to mention when you kill a secondary session. It's bogus.
However, discarding /tmp on *REBOOT* is legitimate.

-hpa

-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt	<amsp@zytor.com>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel"
in
the body of a message to majordomo@vger.kernel.org 
More majordomo info at  http://vger.kernel.org/majordomo-info.html 
Please read the FAQ at  http://www.tux.org/lkml/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/