From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <8f55d962591f55cf217f8070f78dfa3b@coraid.com> References: <20101105102946.GA12171@shutemov.name> <8f55d962591f55cf217f8070f78dfa3b@coraid.com> From: Venkatesh Srinivas Date: Fri, 5 Nov 2010 08:16:30 -0400 Message-ID: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=00504502cd36ce7e9904944d3fbc Subject: Re: [9fans] Passing a file descriptor between processes Topicbox-Message-UUID: 77bde51a-ead6-11e9-9d60-3106f5b1d025 --00504502cd36ce7e9904944d3fbc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Fri, Nov 5, 2010 at 7:41 AM, erik quanstrom wr= ote: > On Fri Nov 5 07:36:42 EDT 2010, rogpeppe@gmail.com wrote: > > see srv(3) > > http://plan9.bell-labs.com/magic/man2html/3/srv > > > > On 5 November 2010 10:29, Kirill A. Shutemov > wrote: > > > One of the ugliest interface in Unix is passing a file descriptor > between > > > processes [1]. Does Plan9 provide any mechanism for it? > > > > > > [1] > http://book.chinaunix.net/special/ebook/addisonWesley/APUE2/0201433079/ch= 17lev1sec4.html > > the op may have seen this: http://lwn.net/Articles/411845/ > =E2=80=94which i found hard to read because the author's changing > definition of "unix". > > - erik > > There was a discussion here a while ago about it too: search for 'sendfd on native Plan 9' from december 2008. Start here: http://9fans.net/archive/2008/12/515, follow till January 2009. Currently, if your processes have a common parent, you can use rfork; if not, you must resort to #s. '#s' is a pretty unfortunate interface, though... -- vs --00504502cd36ce7e9904944d3fbc Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Fri, Nov 5, 2010 at 7:41 AM, erik quanstrom <= span dir=3D"ltr"><quanstro@l= abs.coraid.com> wrote:
On Fri Nov =C2=A05 07:36:42 EDT 2010, rogpeppe@gmail.com wrote:
> see srv(3)
> http://plan9.bell-labs.com/magic/man2html/3/srv
>
> On 5 November 2010 10:29, Kirill A. Shutemov <kirill@shutemov.name> wrote:
> > One of the ugliest interface in Unix is passing a file descriptor= between
> > processes [1]. Does Plan9 provide any mechanism for it?
> >
> > [1] http://book.china= unix.net/special/ebook/addisonWesley/APUE2/0201433079/ch17lev1sec4.html=

the op may have seen this: http://lwn.net/Articles/411845/
=E2=80=94which i found hard to read because the author's changing
definition of "unix".

- erik


There was a discussion here a while ago = about it too: search for 'sendfd on native Plan 9' from december 20= 08. Start here:=C2=A0http:= //9fans.net/archive/2008/12/515, follow till January 2009.

Currently, if your processes have a common parent, you = can use rfork; if not, you must resort to #s. '#s' is a pretty unfo= rtunate interface, though...

-- vs
--00504502cd36ce7e9904944d3fbc--