From owner-freebsd-hackers Fri Feb 10 06:17:46 1995 Return-Path: hackers-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id GAA16640 for hackers-outgoing; Fri, 10 Feb 1995 06:17:46 -0800 Received: from cs.weber.edu (cs.weber.edu [137.190.16.16]) by freefall.cdrom.com (8.6.9/8.6.6) with SMTP id GAA16634 for ; Fri, 10 Feb 1995 06:17:44 -0800 Received: by cs.weber.edu (4.1/SMI-4.1.1) id AA10760; Fri, 10 Feb 95 07:11:21 MST From: terry@cs.weber.edu (Terry Lambert) Message-Id: <9502101411.AA10760@cs.weber.edu> Subject: Re: MIT SHM X11 extensions? (fwd) To: peter@bonkers.taronga.com (Peter da Silva) Date: Fri, 10 Feb 95 7:11:20 MST Cc: davidg@Root.COM, jmb@kryten.atinc.com, hackers@FreeBSD.org In-Reply-To: <199502100302.VAA00899@bonkers.taronga.com> from "Peter da Silva" at Feb 9, 95 09:02:36 pm X-Mailer: ELM [version 2.4dev PL52] Sender: hackers-owner@FreeBSD.org Precedence: bulk This was actually sent before but got stuck in my mail spool (which I cleaned out yesterday when a user took it upon himself to personally mail-bomb Cantor and Seigal. 22438 messages sent from 3 machines, all with the Reply-To: set. > > Uh, why is ETXTBUSY still around? > > What else would you do if you opened a currently running executable for > writing? > > (ETXTBUSY on delete is bogus, and I hope FreeBSD 2.x has dumped that, but > there's really no alternative on open than things that have surprising > consequences) Actually, you could fault the whole image to swap and close the reference to the file -- and just allow the write, with never an ETXTBUSY to be seen. This would involve setting an "affinity" for pages from swap in an executing image. Once this was done, the determination that a file is on a remote file system could cause a pre-load to swap before executing; this would be a rather minor exec change. It would leverage the affinity for swap change to also resolve the NFS-image-overwritten-on-server problem at the same time. Terry Lambert terry@cs.weber.edu --- Any opinions in this posting are my own and not those of my present or previous employers.