Skip to contentSkip to conversation

Is /dev/shm needed?

DISCUSSION Jason Rivard 1 participant 1 message Dec 17, 2001

lore
Share & tools
lore
#0 lore raw

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.

Quoted 1 line
Quoted 1 line
Quoted 1 line

"H. Peter Anvin" <[email protected]> 12/16/01 09:26PM >>>

Followup to:  <E16Fl8j-0000nA-00@phalynx>
By author:    Ryan Cumming <[email protected]>
In newsgroup: linux.dev.kernel
Quoted 3 lines · Adam Schrotenboer
Quoted 1 line

I may be wrong about /tmp as well, but I have come to think that it

is data

Quoted 1 line
Quoted 1 line

that ought be discarded after logout, and have sometimes considered

writing

Quoted 3 lines
Quoted 1 line

a script for it in the login/logout scripts.

System daemons can legally use /tmp, and they may not apprechiate

having

Quoted 1 line

their files removed from underneath them everytime someone telnets

in. ;)

Quoted 1 line

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

-hpa

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