From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 27 17:18:49 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8B7A31065672 for ; Sat, 27 Nov 2010 17:18:49 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id 4C0FD8FC17 for ; Sat, 27 Nov 2010 17:18:49 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:2cf9:c797:1b05:a1a1] (unknown [IPv6:2001:7b8:3a7:0:2cf9:c797:1b05:a1a1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 523475C5A; Sat, 27 Nov 2010 18:18:48 +0100 (CET) Message-ID: <4CF13D7A.4060904@FreeBSD.org> Date: Sat, 27 Nov 2010 18:18:50 +0100 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows NT 5.2; WOW64; rv:2.0b8pre) Gecko/20101116 Thunderbird/3.3a1 MIME-Version: 1.0 To: d@delphij.net References: <4CEEC3BD.3080204@delphij.net> In-Reply-To: <4CEEC3BD.3080204@delphij.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD-Hackers Subject: Re: Is it possible to have file removed upon process exit? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Nov 2010 17:18:49 -0000 On 2010-11-25 21:14, Xin LI wrote: > For certain applications it is sometimes desirable to (e.g. for unix > domain sockets) have file removed when the process quit, regardless > whether the process is quit cleanly. Is there a clean way to do this? Maybe your process could be the child of a parent which cleans up afterwards? (This is an analogy from real life. ;)