From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,6b04f5359af5c957 X-Google-Attributes: gidfee84,public From: graichen@mail.physik.fu-berlin.de (Thomas Graichen) Subject: Re: Overwriting exe's crashes osf programs ? Why Date: 1996/02/22 Message-ID: <4gigro$2pt@prospero.physik.fu-berlin.de>#1/1 X-Deja-AN: 140860721 references: <4gie5u$ngn@lal.interserv.net> organization: his FreeBSD box :-) x-access: 16 17 18 newsgroups: comp.unix.osf.osf1 levine@amarex.com wrote: : When we overwrite executables on disk programs running that exe crash...Can I aviod : with any link options ??? i think this happens because Digital UNIX uses (like most othere modern unices too) demand paging of executables - i.e. it reads pages which are unused at the program start later if it needs them - if you now delete the executable it will die if it needs a page it doesn't have in memory and wanted to read it from the executable file which doesn't exit any longer maybe you can avoid it by using a special linker option (don't have a man page of the Digital UNIX linker handy here - run FreeBSD at home :-) or simply moving it to a new name and delete it later - don't know what you need the deletability for t -- thomas graichen graichen@mail.physik.fu-berlin.de graichen@FreeBSD.org perfection is reached, not when there is no longer anything to add, but when there is no longer anything to take away antoine de saint-exupery