[9fans] Passing a file descriptor between processes

2010-11-05 Thread Kirill A. Shutemov
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/ch17lev1sec4.html

-- 
 Kirill A. Shutemov



Re: [9fans] Passing a file descriptor between processes

2010-11-05 Thread Lucio De Re
On Fri, Nov 05, 2010 at 12:29:46PM +0200, 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?
 
You can pass fds in channels between threads, but for processes you
should look at #s for guidance.

++L



Re: [9fans] Passing a file descriptor between processes

2010-11-05 Thread roger peppe
see srv(3)
http://plan9.bell-labs.com/magic/man2html/3/srv

On 5 November 2010 10:29, Kirill A. Shutemov kir...@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.chinaunix.net/special/ebook/addisonWesley/APUE2/0201433079/ch17lev1sec4.html

 --
  Kirill A. Shutemov





Re: [9fans] Passing a file descriptor between processes

2010-11-05 Thread Skip Tavakkolian
i wish #s had a directory structure and enforced group permissions.

On Fri, Nov 5, 2010 at 5:21 AM, erik quanstrom quans...@quanstro.net wrote:
 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...

 okay, practicially speaking, what's wrong with #s, and what do you propose?

 - erik