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

  1. Path: sparky!uunet!mcsun!corton!cenaath.cena.dgac.fr!stna.dgac.fr!melennec
  2. From: melennec@stna.dgac.fr (Ronan Melennec STNA 7C p8240 BD22)
  3. Newsgroups: comp.unix.programmer
  4. Subject: Re: How to obtain the session id of a process
  5. Message-ID: <1992Aug13.080343.456@cenaath.cena.dgac.fr>
  6. Date: 13 Aug 92 08:03:43 GMT
  7. References: <1992Aug9.214952.28392@usl.edu> <152@sc.sni.ie>
  8. Sender: news@cenaath.cena.dgac.fr
  9. Organization: STNA 95 rue Henri Rochefort 91025 Evry Cedex 33(1)60.79.80.00
  10. Lines: 22
  11.  
  12. In article <152@sc.sni.ie>, bsullivn@sc.sni.ie (Bryan O'Sullivan) writes:
  13. > rml8030@usl.edu (Lavergne Rhena M) writes:
  14. > :>Under SunOS 4.1, a process can issue a setsid() system call to disassociate
  15. > :>itself from its controlling terminal and become a session leader.
  16. > :Try "echo $$", it works on most shells, it will display the current
  17. > :shell's process id.
  18. > [...]
  19. > As far as I know, SunOS should include the getsid(2)
  20. > system call -- SVR4 certainly does, and it would be more than a little
  21. > bizarre if Sun left it out.
  22.  
  23. It depends on the SunOS version. SunOS 5.0 (aka Solaris 2.0) has
  24. getsid(2), SunOS 4.1.1 doesn't have it.
  25.  
  26. -- 
  27. Ronan Melennec              | Service Technique de la Navigation Aerienne
  28. +33 1 60 79 82 40           | Departement 7
  29. melennec@stna7.stna.dgac.fr | 95, rue Henri Rochefort, 91025 EVRY CEDEX, FRANCE
  30.