From owner-freebsd-current@FreeBSD.ORG Thu Sep 4 09:36:37 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 AB8EC16A4BF for ; Thu, 4 Sep 2003 09:36:37 -0700 (PDT) Received: from mta4.rcsntx.swbell.net (mta4.rcsntx.swbell.net [151.164.30.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id E2A4543FCB for ; Thu, 4 Sep 2003 09:36:36 -0700 (PDT) (envelope-from mbsd@pacbell.net) Received: from atlas (adsl-64-160-45-240.dsl.snfc21.pacbell.net [64.160.45.240])h84GaVt2006818; Thu, 4 Sep 2003 11:36:32 -0500 (CDT) Date: Thu, 4 Sep 2003 09:36:31 -0700 (PDT) From: =?ISO-8859-1?Q?Mikko_Ty=F6l=E4j=E4rvi?= X-X-Sender: mikko@atlas.home To: Paul Richards In-Reply-To: <1062687770.45731.4.camel@acheron.livid.de> Message-ID: <20030904092729.L59430@atlas.home> References: <1062686653.67807.77.camel@localhost> <1062687770.45731.4.camel@acheron.livid.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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: Thu, 04 Sep 2003 16:36:37 -0000 On Thu, 4 Sep 2003, Scott M. Likens wrote: > On Thu, 2003-09-04 at 07:44, Paul Richards wrote: > > Overwriting a file that's currently executing results in a "Text file > > busy" error. > > > > When did this start happening? > > > > This was something that was fixed way back on FreeBSD but it seems to be > > a problem again. > > > > Paul. > > this "feature" has always existed in FreeBSD for as long as I remember. > > Of course there are ways to bypass this "feature" but it's there for > your protection. You shouldn't be upgrading a program that's in > resident memory. That's like trying to reinstall X while running in X. > You're just asking for problems. > > turnoff postfix, install the new version and be happy. > > Every single 'flavor' of Unix/Unices has always had this feature. I've > seen it on HP-UX box's on Solaris Servers, Linux, NetBSD, OpenBSD, > FreeBSD. Maybe you wern't paying attention but, that is one of those > things I think should fall under duh, i shouldn't do that it might make > things crash hard. SunOS 4 let you overwrite binaries for running programs, which almost surely made them crash. HP-UX has the annoying misfeature that you cannot even unlink a binary used for paging. The way to do it is to mv/rm te target before installing the new version. AFAIK install(1) will do the right thing. If you are into foot shooting, you can always overwrite a shared lib, such as libc.so, and watch (almost) all your programs crash and burn :-) $.02, /Mikko