home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / hp / 9452 < prev    next >
Encoding:
Text File  |  1992-08-19  |  1.7 KB  |  38 lines

  1. Newsgroups: comp.sys.hp
  2. Path: sparky!uunet!utcsri!torn!cunews!nrcnet0!bnrgate!bmers145!bnr.ca!tpc
  3. From: tpc@bnr.ca (Thomas P. Chmara)
  4. Subject: POSIX enhancements since HP-UX 6.5:  how affects daemonization?
  5. Message-ID: <1992Aug19.195733.6344@bmers145.bnr.ca>
  6. Keywords: fork() setsid()
  7. Sender: news@bmers145.bnr.ca
  8. Reply-To: tpc@bnr.ca
  9. Organization: Bell-Northern Research Ltd.
  10. Date: Wed, 19 Aug 92 19:57:33 GMT
  11. Lines: 25
  12.  
  13. Well, here we go, kicking and screaming into the '90s... :-)
  14.  
  15. The last time I touched applications in HP-UX 6.5  I had to write a daemon,
  16. and used Dave Lennert's UnixWorld article (Dec88) to good advantage.  That
  17. was pre-POSIX.  From what I can tell, for HP-UX 8.0, aside from setpgrp now
  18. being setsid(), we *still* have to fork() twice (to ensure opening a tty
  19. doesn't become a controlling tty).  One thing leaves me uneasy:  it used to
  20. be that orphans (as we forcibly created in pre-POSIX) got PGRP==0; that's
  21. not valid under POSIX, so they retain the old PGRP.  Does this also mean that
  22. they can acquire a controlling tty, or does the old mechanism work (for
  23. modified reasons)?
  24.  
  25. Any pointers on where I can find the rules and roadmarks for all of this would
  26. be much appreciated by this crusty old kernel hack.  I've got a copy of
  27. W. Richard Steven's Network Programming, but not UNIX Programming; that's
  28. still coming...
  29.     ---tpc---
  30.  
  31.  
  32. -- 
  33. I am sole owner of the above opinions. These opinions are furnished without
  34. warranty or liability expressed or implied.  Your mileage may vary.
  35. -----------------------------------------------------------------------------
  36. Tom Chmara, P.Eng.|  INTERNET:  tpc@x400gate.bnr.ca    |  Fone:  (613)765-2925
  37. BNR Ltd.      |                      |  FAX:   (613)763-2626
  38.