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

  1. Xref: sparky comp.unix.programmer:4323 comp.unix.misc:3240
  2. Path: sparky!uunet!auspex-gw!guy
  3. From: guy@Auspex.COM (Guy Harris)
  4. Newsgroups: comp.unix.programmer,comp.unix.misc
  5. Subject: Re: Process & Signal Question
  6. Message-ID: <14078@auspex-gw.auspex.com>
  7. Date: 15 Aug 92 18:06:07 GMT
  8. References: <1759227@bailey.UUCP>
  9. Sender: news@auspex-gw.auspex.com
  10. Followup-To: comp.unix.programmer
  11. Organization: Auspex Systems, Santa Clara
  12. Lines: 12
  13. Nntp-Posting-Host: bootme.auspex.com
  14.  
  15. >You could also try opening the executable file in exclusive mode.
  16.  
  17. "Exclusive mode"?  Is that an HP-UXism?
  18.  
  19. NOTE: O_EXCL is *NOT* "exclusive mode", when used to open an ordinary
  20. file, unless the system under which it's being used is a Mutant UNIX
  21. From Hell.  It's "exclusive create" mode, which merely says that if the
  22. file already exists, the open should fail.
  23.  
  24. An "exclusive mode" bit for "open()" might be a good idea.  An
  25. "exclusive mode" bit for "open()" with the name O_EXCL would probably be
  26. a Bad Idea.
  27.