From owner-freebsd-current@FreeBSD.ORG Mon Dec 28 11:41:36 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9F0C81065695 for ; Mon, 28 Dec 2009 11:41:36 +0000 (UTC) (envelope-from peterjeremy@acm.org) Received: from mail36.syd.optusnet.com.au (mail36.syd.optusnet.com.au [211.29.133.76]) by mx1.freebsd.org (Postfix) with ESMTP id 13EDB8FC24 for ; Mon, 28 Dec 2009 11:41:35 +0000 (UTC) Received: from server.vk2pj.dyndns.org (c122-106-232-83.belrs3.nsw.optusnet.com.au [122.106.232.83]) by mail36.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id nBSBfWng007991 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 28 Dec 2009 22:41:34 +1100 X-Bogosity: Ham, spamicity=0.000000 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.3/8.14.3) with ESMTP id nBSBfVd9011737; Mon, 28 Dec 2009 22:41:31 +1100 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.3/8.14.3/Submit) id nBSBfVZm011736; Mon, 28 Dec 2009 22:41:31 +1100 (EST) (envelope-from peter) Date: Mon, 28 Dec 2009 22:41:31 +1100 From: Peter Jeremy To: Jilles Tjoelker Message-ID: <20091228114131.GB11463@server.vk2pj.dyndns.org> References: <200912272256.13436.ken@mthelicon.com> <20091227232212.GA18893@stack.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="eJnRUKwClWJh1Khz" Content-Disposition: inline In-Reply-To: <20091227232212.GA18893@stack.nl> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.20 (2009-06-14) Cc: FreeBSD current mailing list Subject: Re: Clearing /var/tmp on boot X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Dec 2009 11:41:36 -0000 --eJnRUKwClWJh1Khz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2009-Dec-28 00:22:12 +0100, Jilles Tjoelker wrote: >Another alternative is to enable /etc/periodic/daily/110.clean-tmps. >That one is a bit overzealous though, also deleting sockets that are >still in use. I wrote a tool for $work that (amongst other things) does periodic cleanups. In order to avoid this problem, it uses lsof(8) to confirm that a candidate for deletion is not in use before deleting it. It would be nice if there was a system call like unlink(2) which failed if the file was open... --=20 Peter Jeremy --eJnRUKwClWJh1Khz Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAks4mWoACgkQ/opHv/APuIdXJACgtm4sYPSXqFajx5XO6MCfhmCb 12cAn0DNSaUmTt/Iv3hyyvAgBWLRuYPp =DuLp -----END PGP SIGNATURE----- --eJnRUKwClWJh1Khz--