From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JHAz2-00081J-SL for garchives@archives.gentoo.org; Tue, 22 Jan 2008 04:43:37 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 76B11E0542; Tue, 22 Jan 2008 04:43:35 +0000 (UTC) Received: from mail.netspace.net.au (mail-out3.netspace.net.au [203.10.110.76]) by pigeon.gentoo.org (Postfix) with ESMTP id 28D54E0542 for ; Tue, 22 Jan 2008 04:43:35 +0000 (UTC) Received: from [172.16.0.52] (ppp246-231.static.internode.on.net [203.122.246.231]) by mail.netspace.net.au (Postfix) with ESMTP id 8528E3B15 for ; Tue, 22 Jan 2008 15:43:31 +1100 (EST) Subject: Re: [gentoo-user] stuff accumulating in /tmp From: Iain Buchanan To: gentoo-user@lists.gentoo.org In-Reply-To: <4795648A.7070908@home.se> References: <20080120013901.GB5048@sympatico.ca> <4792C782.1070806@gmail.com> <20080120045549.GD5048@sympatico.ca> <200801201052.13182.alan.mckinnon@gmail.com> <4795648A.7070908@home.se> Content-Type: text/plain Date: Tue, 22 Jan 2008 14:13:01 +0930 Message-Id: <1200976981.1816.71.camel@orpheus> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.12.2 Content-Transfer-Encoding: 7bit X-Archives-Salt: 2374d386-7ecb-4d50-bd2f-ba3932097a68 X-Archives-Hash: c356c9d0b16fcba652122415cf0418e1 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 Emperor Palpatine: Soon the Rebellion will be crushed and young Skywalker will be one of us! -- gentoo-user@lists.gentoo.org mailing list