home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!swrinde!ringer!rrybacki
- From: rrybacki@ringer.cs.utsa.edu (Richard M. Rybacki)
- Newsgroups: comp.unix.programmer
- Subject: Re: Process & Signal Question
- Message-ID: <1992Aug18.205521.4078@ringer.cs.utsa.edu>
- Date: 18 Aug 92 20:55:21 GMT
- References: <Bt5tp0.9JI@gumby.ocs.com> <1992Aug18.145412.6352@wuecl.wustl.edu>
- Organization: University of Texas at San Antonio
- Lines: 24
-
- In article <1992Aug18.145412.6352@wuecl.wustl.edu> pete@achilles.arl writes:
- >>A vague memory tells me that on System V machines, demand-paged
- >>executables which are in use (being executed) can't be overwritten. If you
- >>could, horrid things would happen to the running process when it tried to
- >>demand page from the executable. I believe the errno you get if you try to
- >>open such an executable image for writing is ETXTBSY (Text File busy).
- >>
- >>Could someone confirm or deny this?
- >
- >I don't know about Sys V, but Sun OS 4.1.1 lets you do this. On several occasions I have
- >installed a new executable for a running program and it's almost always resulted in
- >Bus Errors... Nothing worse than that though...
-
- If you are talking about a file which is being shared via NFS, this could
- happen, because NFS does not completely implement the UNIX file deletion
- semantics. In the local filesystem case, this should not present a problem.
- I believe Sun tried to mitigate this by renaming the deleted file on the
- server side, but this does not help the case where two NFS clients are
- sharing a single executalbe from a common server.
- --
- Richard M. Rybacki
- rrybacki@ringer.cs.utsa.edu
- (512) 731-0000
- "Will consult for food"
-