From owner-freebsd-current Mon Mar 6 09:43:23 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id JAA12840 for current-outgoing; Mon, 6 Mar 1995 09:43:23 -0800 Received: from cs.weber.edu (cs.weber.edu [137.190.16.16]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id JAA12834 for ; Mon, 6 Mar 1995 09:43:22 -0800 Received: by cs.weber.edu (4.1/SMI-4.1.1) id AA18439; Mon, 6 Mar 95 10:36:07 MST From: terry@cs.weber.edu (Terry Lambert) Message-Id: <9503061736.AA18439@cs.weber.edu> Subject: Re: "Text file busy" with program not running anymore? To: davidg@Root.COM Date: Mon, 6 Mar 95 10:36:07 MST Cc: jhay@mikom.csir.co.za, current@FreeBSD.org In-Reply-To: <199503051523.HAA00249@corbin.Root.COM> from "David Greenman" at Mar 5, 95 07:23:16 am X-Mailer: ELM [version 2.4dev PL52] Sender: current-owner@FreeBSD.org Precedence: bulk > >Now it isn't the end of the world for me, I can just delete the file before > >I copy the new one or use install. > > > >I would just like to know if this is expected behaviour or not? > > It is expected. Whenever a file is executed, the VTEXT flag is set on the > vnode to indicate that someone is executing it. The flag remains set until > there are no references to it and it is no longer cached. In your case, it > lingered in the cache. It never 'times out' - the cached vnodes are replaced > with other cached vnodes - so it will only get out of the cache if there is > activity on the system to flush it out. > It's conceivable that there could be a count instead of a flag...but this > complicates things quite a bit and I don't see the point in it. Just rm the > file first. Or type sync. It *does* still do what its man page says it does, right? Terry Lambert terry@cs.weber.edu --- Any opinions in this posting are my own and not those of my present or previous employers.