From owner-freebsd-current@FreeBSD.ORG Fri Sep 5 02:03:49 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2652C16A4C0 for ; Fri, 5 Sep 2003 02:03:49 -0700 (PDT) Received: from bob.inty.net (bob.inty.net [212.50.178.148]) by mx1.FreeBSD.org (Postfix) with ESMTP id F333743FE9 for ; Fri, 5 Sep 2003 02:03:47 -0700 (PDT) (envelope-from paul@inty.com) x-previous-hop: 212.50.178.178 Received: from inty.hq.inty.net (inty-untrusted-aztec-west.inty.net [212.50.178.178]) by bob.inty.net (8.12.9/8.12.9) with ESMTP id h8593fKg029943; Fri, 5 Sep 2003 10:03:42 +0100 (BST) Received: from [10.0.1.111] ([10.0.1.111]) by inty.hq.inty.net (8.12.1/8.12.1) with ESMTP id h8593dZC060003; Fri, 5 Sep 2003 10:03:39 +0100 (BST) From: Paul Richards To: kientzle@acm.org In-Reply-To: <3F578250.7020100@acm.org> References: <1062686653.67807.77.camel@localhost> <3F578250.7020100@acm.org> Content-Type: text/plain Message-Id: <1062752619.87926.4.camel@localhost> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.4 Date: Fri, 05 Sep 2003 10:03:40 +0100 Content-Transfer-Encoding: 7bit X-Sender-IP: 10.0.1.111 X-INT-DeliveryDone: h8593dZC060003 X-suppress-rcpt-virus-notify: yes X-Virus-Checked: 32824 X-Skip-Virus-Check: yes cc: current@freebsd.org Subject: Re: Text file busy X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Fri, 05 Sep 2003 09:03:49 -0000 On Thu, 2003-09-04 at 19:20, Tim Kientzle wrote: > Depends on how you're installing the binary. It has always been > safe to do either of the following: > * Rename the current executable and then install the new one. > * Unlink the current executable and then install the new one. > Many tools that claim to "overwrite" really do the latter, which > causes a certain amount of understandable confusion. (I'm pretty > sure "install" does unlink/copy by default and will do rename/copy > if you specify -b.) I thought I remembered a discussion from the very early days where a solution was implemented to copy the pages if a file was overwritten into memory or swap but I can find no record of that now other than a suggestion in a thread that Solaris might do this. I think I'm confusing the above impression with an actual problem that was fixed where you'd still get the error even though the program had stopped executing. Paul. intY has scanned this email for all known viruses (www.inty.com)