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