public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Iain Buchanan <iaindb@netspace.net.au>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] stuff accumulating in /tmp
Date: Tue, 22 Jan 2008 14:13:01 +0930	[thread overview]
Message-ID: <1200976981.1816.71.camel@orpheus> (raw)
In-Reply-To: <4795648A.7070908@home.se>


On Tue, 2008-01-22 at 04:35 +0100, Erik wrote:
> Alan McKinnon skrev:
> > On Sunday 20 January 2008, Philip Webb wrote:
> >   
> >> 080119 Kevin wrote:
> >>     
> >>> To automatically wipe /tmp upon reboot,
> >>> change  WIPE_TMP  to "yes" in  /etc/conf.d/bootmisc
> >>>       
> >> Thanks: I will consider the implications.
> >>     
> > There aren't any implications. By *definition*, the contents of /tmp 
> > should not be relied on to survive a reboot or even subsequent 
> > invocations of the same program.
> >   
> What definition? What if there is a script that calls a program and
> redirects the output to /tmp and then calls another program that uses
> the ouput? Would that be wrong? Does the script count as a program or
> each command separately? See this example:
> cat $(find -name regexps) > /tmp/all_regexps
> egrep -f /tmp/all_regexps some_file

FHS defines that /tmp should not be used to store anything between
reboots, but that /var/tmp should be used in this case.

POSIX defines that /tmp cannot be relied upon between successive
instances of the same program:

/tmp
     A directory made available for applications that need a place to create 
temporary files. Applications shall be allowed to create files in this 
directory, but shall not assume that such files are preserved between 
invocations of the application.

There is currently a looong discussion (flame?) going on about this on
gentoo-dev:

http://article.gmane.org/gmane.linux.gentoo.devel/54402

which quotes the appropriate "standards".

HTH,
-- 
Iain Buchanan <iaindb at netspace dot net dot au>

Emperor Palpatine:
	Soon the Rebellion will be crushed and young Skywalker
	will be one of us!

-- 
gentoo-user@lists.gentoo.org mailing list



  reply	other threads:[~2008-01-22  4:43 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-20  1:39 [gentoo-user] stuff accumulating in /tmp Philip Webb
2008-01-20  2:05 ` Dale
2008-01-20  2:34   ` Philip Webb
2008-01-20  4:01     ` Kevin
2008-01-20  4:55       ` Philip Webb
2008-01-20  8:52         ` Alan McKinnon
2008-01-21  2:23           ` Philip Webb
2008-01-22  3:35           ` Erik
2008-01-22  4:43             ` Iain Buchanan [this message]
2008-01-20  8:49   ` Alan McKinnon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1200976981.1816.71.camel@orpheus \
    --to=iaindb@netspace.net.au \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox