home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / programm / 4349 < prev    next >
Encoding:
Text File  |  1992-08-18  |  1.5 KB  |  35 lines

  1. Newsgroups: comp.unix.programmer
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!wupost!eclnews!achilles!pete
  3. From: pete@achilles.arl (Peter Flugstad,,,)
  4. Subject: Re: Process & Signal Question
  5. Message-ID: <1992Aug18.145412.6352@wuecl.wustl.edu>
  6. Sender: usenet@wuecl.wustl.edu (Usenet Administrator)
  7. Nntp-Posting-Host: achilles
  8. Reply-To: pete@achilles.arl
  9. Organization: Washington University, School of Engineering, St. Louis MO
  10. References: <Bt5tp0.9JI@gumby.ocs.com>
  11. Date: Tue, 18 Aug 1992 14:54:12 GMT
  12. Lines: 21
  13.  
  14. In article 9JI@gumby.ocs.com, obi@gumby.ocs.com (Kuryan "Obi" Thomas) writes:
  15. >In article <1657227@bailey.UUCP>, bill@bailey.UUCP (Bill Glidden 882-8369)
  16. >writes:
  17. >> Make knows the executable is in use because when you fopen or open a file for
  18. >> create and it is in use, the operating system returns an error condition to
  19. >> the calling program. Of course, I don't recommend this for your situation.
  20. >
  21. >A vague memory tells me that on System V machines, demand-paged
  22. >executables which are in use (being executed) can't be overwritten. If you
  23. >could, horrid things would happen to the running process when it tried to
  24. >demand page from the executable. I believe the errno you get if you try to
  25. >open such an executable image for writing is ETXTBSY (Text File busy).
  26. >
  27. >Could someone confirm or deny this?
  28.  
  29.  
  30. I don't know about Sys V, but Sun OS 4.1.1 lets you do this.  On several occasions I have 
  31. installed a new executable for a running program and it's almost always resulted in 
  32. Bus Errors...  Nothing worse than that though...
  33.  
  34.  
  35.