Newbie Question About System Update
    Warner Losh 
    imp at bsdimp.com
       
    Tue Apr 19 15:36:17 PDT 2005
    
    
  
From: Bill Moran <wmoran at potentialtech.com>
Subject: Re: Newbie Question About System Update
Date: Tue, 19 Apr 2005 16:32:37 -0400
> Chuck Swiger <cswiger at 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. 
Warner
    
    
More information about the freebsd-stable
mailing list