From owner-freebsd-stable@FreeBSD.ORG Tue Apr 19 22:36:17 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BE63E16A4CE for ; Tue, 19 Apr 2005 22:36:17 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F07543D1D for ; Tue, 19 Apr 2005 22:36:17 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1]) by harmony.village.org (8.13.3/8.13.1) with ESMTP id j3JMYbf1064269; Tue, 19 Apr 2005 16:34:37 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 19 Apr 2005 16:34:37 -0600 (MDT) Message-Id: <20050419.163437.71152253.imp@bsdimp.com> To: wmoran@potentialtech.com From: Warner Losh In-Reply-To: <20050419163237.76a99373.wmoran@potentialtech.com> References: <20050419120053.6ad17df1.wmoran@potentialtech.com> <42655B8E.5020603@mac.com> <20050419163237.76a99373.wmoran@potentialtech.com> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-stable@freebsd.org Subject: Re: Newbie Question About System Update X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Apr 2005 22:36:17 -0000 From: Bill Moran Subject: Re: Newbie Question About System Update Date: Tue, 19 Apr 2005 16:32:37 -0400 > Chuck Swiger wrote: > > Bill Moran wrote: > > > The system can not replace programs that are in use, > > > > This is generally not the case. Unix lets you continue to access a file after > > it has been deleted, so long as the process hangs on to a file descriptor. > > This lets you replace programs in use, without running into the same problems > > that platforms like Windows have. > > What you say?: > > bash-2.05b$ su > Password: > bolivia# cp /usr/sbin/cron /home/wmoran/. > bolivia# cp /home/wmoran/cron /usr/sbin/. > cp: /usr/sbin/./cron: Text file busy > bolivia# mv /usr/sbin/cron /usr/sbin/cron- cp /blah/cron /usr/sbin/cron install does this behind the scenes. Warner