From owner-freebsd-bugs Mon May 19 15:39:02 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id PAA23773 for bugs-outgoing; Mon, 19 May 1997 15:39:02 -0700 (PDT) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id PAA23748 for ; Mon, 19 May 1997 15:38:55 -0700 (PDT) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id AAA24593 for freebsd-bugs@FreeBSD.org; Tue, 20 May 1997 00:38:50 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.8.5/8.8.5) id AAA01602; Tue, 20 May 1997 00:25:37 +0200 (MET DST) Message-ID: <19970520002537.XH34654@uriah.heep.sax.de> Date: Tue, 20 May 1997 00:25:37 +0200 From: j@uriah.heep.sax.de (J Wunsch) To: freebsd-bugs@FreeBSD.org (FreeBSD bugs list) Subject: Re: conf/3605: New /etc/rc not clearing /tmp References: <199705191725.NAA23220@lakes.water.net> X-Mailer: Mutt 0.60_p2-3,5,8-9 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199705191725.NAA23220@lakes.water.net>; from Thomas David Rivers on May 19, 1997 13:25:34 -0400 Sender: owner-bugs@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk As Thomas David Rivers wrote: > Generally, it's not a good idea to clean /tmp while a machine is > "up". > > Consider the scenario: > > 1) long-running-process writes a file to /tmp, to be read some time later. > (closes the file, but "remembers" it's there.) > > 2) /etc/daily comes along, wipes out the file. Kill this silly /etc/daily then. :) My personal cleanup scripts only kill files that haven't been accessed for more than 3 days. This should be enough even for a long-running process. Also, if it's really only for this process, it should better keep just a descriptor open on it, instead of remembering its name. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)