Skip site navigation (1)Skip section navigation (2)
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
Message-ID:  <19970520002537.XH34654@uriah.heep.sax.de>
In-Reply-To: <199705191725.NAA23220@lakes.water.net>; from Thomas David Rivers on May 19, 1997 13:25:34 -0400
References:  <199705191725.NAA23220@lakes.water.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970520002537.XH34654>