Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Apr 2005 19:17:35 -0400
From:      Bill Moran <wmoran@potentialtech.com>
To:        Warner Losh <imp@bsdimp.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Newbie Question About System Update
Message-ID:  <20050419191735.3402dd0a.wmoran@potentialtech.com>
In-Reply-To: <20050419.163437.71152253.imp@bsdimp.com>
References:  <20050419120053.6ad17df1.wmoran@potentialtech.com> <42655B8E.5020603@mac.com> <20050419163237.76a99373.wmoran@potentialtech.com> <20050419.163437.71152253.imp@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 19 Apr 2005 16:34:37 -0600 (MDT)
Warner Losh <imp@bsdimp.com> wrote:

> From: Bill Moran <wmoran@potentialtech.com>
> Subject: Re: Newbie Question About System Update
> Date: Tue, 19 Apr 2005 16:32:37 -0400
> 
> > Chuck Swiger <cswiger@mac.com> 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. 

I suppose I have to stand corrected.

Thanks for putting me straight.

-- 
Bill Moran
Potential Technologies
http://www.potentialtech.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050419191735.3402dd0a.wmoran>