home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / programm / 4357 < prev    next >
Encoding:
Internet Message Format  |  1992-08-18  |  1.7 KB

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