From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 27 17:15:58 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 819EB1065673 for ; Sat, 27 Nov 2010 17:15:58 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 12D068FC08 for ; Sat, 27 Nov 2010 17:15:57 +0000 (UTC) Received: by eyb7 with SMTP id 7so1404806eyb.13 for ; Sat, 27 Nov 2010 09:15:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=giG7nqncCd86np1te5SMgsIIkyzGvbIJYZA0hPd+5QA=; b=kDZxFUwlFtlCovEqjkuMQtCgyd0gF3sKmn18yds8XuNjOw1axzgkz5lCKnVZnCR+SF ulrlrNp3f3XrvtpMpELvhdm9pHqkbGQPxrKnVJRk2acDRktWMIE6veee2A7Yt9hXsR8A ZcZVYRn2hksr2yCFxJ3TYyh8jqBgsUUacj5p8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=N1j+uz1u9P9X2fLI+Rz4SZe84UEiw271hjFHxDMHmtmUPjUg4wHy0fcHCRClrqVFDd OySRu604o0qVvvE6VjgPUqlhmoa+NAjbtuBKTdvuIj44El4SNSNSTNvDefnoGASvLLOa bKpEjToV8yLu417W5H2rS8IJEx4A09t5eJBmA= MIME-Version: 1.0 Received: by 10.213.8.146 with SMTP id h18mr7551267ebh.87.1290876730949; Sat, 27 Nov 2010 08:52:10 -0800 (PST) Received: by 10.213.14.138 with HTTP; Sat, 27 Nov 2010 08:52:10 -0800 (PST) In-Reply-To: References: <4CEEC3BD.3080204@delphij.net> Date: Sat, 27 Nov 2010 11:52:10 -0500 Message-ID: From: Ryan Stone To: "Carlos A. M. dos Santos" Content-Type: text/plain; charset=ISO-8859-1 Cc: FreeBSD-Hackers , d@delphij.net 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:15:58 -0000 On Sat, Nov 27, 2010 at 11:42 AM, Carlos A. M. dos Santos wrote: > > Did you try to use atexit(3) to register a deletion function? > That doesn't help you if the process crashes. The OP wants a solution that works even if the process doesn't exit cleanly.