Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Aug 1995 17:26:07 -0700 (PDT)
From:      "Rodney W. Grimes" <rgrimes@gndrsh.aac.dev.com>
To:        bde@zeta.org.au (Bruce Evans)
Cc:        bde@zeta.org.au, CVS-commiters@freefall.cdrom.com, cvs-usrbin@freefall.cdrom.com, joerg@freefall.cdrom.com
Subject:   Re: cvs commit: src/usr.bin/xinstall xinstall.c
Message-ID:  <199508060026.RAA03325@gndrsh.aac.dev.com>
In-Reply-To: <199508052357.JAA31395@godzilla.zeta.org.au> from "Bruce Evans" at Aug 6, 95 09:57:27 am

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> >Humm.. can install open the file before it is unlinked, unlink it, try
> >the install and if it fails some how relink the open file?  [I am not
> >much on this type of user land operation, so I am not sure if you can
> >do that :-)]
> 
> This is on my todo list.  The original file should be left alone until
> (a copy of) the new file can be rename()d to it.  This will fix some
> race conditions (e.g., something wanting to use libc.so while libc.so
> is being installed) and allow better recovery from errors (e.g., when
> the disk fills up while the new copy of libc.so is being written).

Okay, sounds great.  Meanwhile would you go back out that bad hack to
install before it causes some greif some place.


-- 
Rod Grimes                                      rgrimes@gndrsh.aac.dev.com
Accurate Automation Company                 Reliable computers for FreeBSD



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