From owner-freebsd-current Mon Mar 6 10:22:48 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id KAA13795 for current-outgoing; Mon, 6 Mar 1995 10:22:48 -0800 Received: from Root.COM (implode.Root.COM [198.145.90.1]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id KAA13788 for ; Mon, 6 Mar 1995 10:22:37 -0800 Received: from corbin.Root.COM (corbin.Root.COM [198.145.90.18]) by Root.COM (8.6.8/8.6.5) with ESMTP id KAA03348; Mon, 6 Mar 1995 10:22:16 -0800 Received: from localhost (localhost [127.0.0.1]) by corbin.Root.COM (8.6.9/8.6.5) with SMTP id KAA02179; Mon, 6 Mar 1995 10:22:16 -0800 Message-Id: <199503061822.KAA02179@corbin.Root.COM> X-Authentication-Warning: corbin.Root.COM: Host localhost didn't use HELO protocol To: terry@cs.weber.edu (Terry Lambert) cc: current@FreeBSD.org Subject: Re: "Text file busy" with program not running anymore? In-reply-to: Your message of "Mon, 06 Mar 95 10:05:39 MST." <9503061705.AA18252@cs.weber.edu> From: David Greenman Reply-To: davidg@Root.COM Date: Mon, 06 Mar 1995 10:22:15 -0800 Sender: current-owner@FreeBSD.org Precedence: bulk >> The VTEXT flag is only set on exec()'d files. Shared libraries aren't >> exec()'d. If you clobber the data in a shared library file, any processes >> which are currently using them will likely die. ...but install unlinks the >> target first, so this should happen. > >This still bugs the hell out of me. Clearly, if one of the dubious >"benefits" of memory overcommit (besides not being able to do decent >system dumps or software based power management) is the ability to >get "Text file busy" messages out the ying-yang, then you should get >them for any pages mapped as executable. > >And this includes shared libraries. > >WHY isn't the VTEXT flag set on anything mmap'ed as executable, like >shared libraries or dlopen targets? > >Enquiring minds want to know... The main reason is that mapping files with execute permission is too over- used. We could do this, but I suspect that it won't be a very popular change. -DG