Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!unmvax!ncar!ames!oliveb!3comvax!bridge2!auspex!guy From: guy@auspex.UUCP (Guy Harris) Newsgroups: comp.unix.wizards Subject: Re: Demand paged executables Message-ID: <943@auspex.UUCP> Date: 3 Feb 89 20:10:55 GMT References: <409@lakart.UUCP> <1997@solo12.cs.vu.nl> <2765@rti.UUCP> Reply-To: guy@auspex.UUCP (Guy Harris) Organization: Auspex Systems, Santa Clara Lines: 17 >In HP-UX 6.2 you cannot unlink an executing demand paged (or shared) >program, regardless of how many other on-disk links there are. >I have no idea why this change was made (HP-UX 6.0 did not have the >restriction), Amazingly enough, this stupid restriction is required by the SVID if you support shared text. (Check out UNLINK(BA_OS).) Sometimes "SVID" stands for "System V Implementation Description".... One way around this is to say you don't support shared text. SunOS will probably do so by Sun saying - quite correctly - that they don't support shared text; instead, they support read-only copy-on-write mappings to the file (yes, that really *is*, in effect, the way an "exec" of a 0413 executable is done; the net effect, of course, is that the pages are *still* shared - unless you try to run a debugger on the program and set breakpoints, in which case private copies are made of the pages in which breakpoints are set).