home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!kithrup!hoptoad!pacbell.com!mips!swrinde!zaphod.mps.ohio-state.edu!rpi!think.com!barmar
- From: barmar@think.com (Barry Margolin)
- Newsgroups: comp.unix.internals
- Subject: Re: Socket to which related processes may read/write ?.
- Message-ID: <17113aINN3pt@early-bird.think.com>
- Date: 20 Aug 92 20:59:22 GMT
- References: <1992Aug19.225324.21116@hubcap.clemson.edu>
- Distribution: na
- Organization: Thinking Machines Corporation, Cambridge MA, USA
- Lines: 19
- NNTP-Posting-Host: telecaster.think.com
-
- In article <1992Aug19.225324.21116@hubcap.clemson.edu> rsaripa@venus.cs.clemson.edu (Saripalli Ramakrishna) writes:
- > I would like to know if there is any way a socket can be established
- > by some ancestor so that all of its descendants might be able to
- > monitor the socket(channel) and be able to read/write from/to the
- > socket.
-
- If the socket is opened by the ancestor before it forks the children, then
- the children will inherit it (just like any other descriptors) and can use
- it.
-
- If the socket is opened after the children are spawned, you can use Unix
- domain sockets to pass the socket access right to the children. Stevens
- has a section on passing access rights, although I've heard that it doesn't
- work in all socket implementations.
- --
- Barry Margolin
- System Manager, Thinking Machines Corp.
-
- barmar@think.com {uunet,harvard}!think!barmar
-