Hi all,
During the Budapest meetings it was mentioned that you can pass a fd between processes. How does that work? Does someone have a code example or a link to code that does that? Just to satisfy my curiosity.
Regards,
Hans
On Sun, May 15, 2011 at 02:33:41PM -0700, Hans Verkuil wrote:
During the Budapest meetings it was mentioned that you can pass a fd between processes. How does that work? Does someone have a code example or a link to code that does that? Just to satisfy my curiosity.
You can use a socket and send(msg) with the SCM_RIGHTS message type. A web search gives a few simpleish examples, such as this one: http://lists.canonical.org/pipermail/kragen-hacks/2002-January/000292.html
- Robert
On 05/15/2011 03:57 PM, Robert Morell wrote:
On Sun, May 15, 2011 at 02:33:41PM -0700, Hans Verkuil wrote:
During the Budapest meetings it was mentioned that you can pass a fd between processes. How does that work? Does someone have a code example or a link to code that does that? Just to satisfy my curiosity.
You can use a socket and send(msg) with the SCM_RIGHTS message type. A web search gives a few simpleish examples, such as this one: http://lists.canonical.org/pipermail/kragen-hacks/2002-January/000292.html
Also described in Stevens - Section 17.4 in the second edition.
Jordan
Hello,
On Sunday, May 15, 2011 11:34 PM Hans Verkuil wrote:
During the Budapest meetings it was mentioned that you can pass a fd between processes. How does that work? Does someone have a code example or a link to code that does that? Just to satisfy my curiosity.
Here is quite nice tutorial: http://www.aesop.or.kr/?mid=PageMain_Downloads
Best regards
Hello,
On Monday, May 16, 2011 5:26 PM Marek Szyprowski wrote:
On Sunday, May 15, 2011 11:34 PM Hans Verkuil wrote:
During the Budapest meetings it was mentioned that you can pass a fd between processes. How does that work? Does someone have a code example or a link to code that does that? Just to satisfy my curiosity.
Here is quite nice tutorial:
I'm really sorry for the bad link. Copy/paste fault. :(
Here is the correct one: http://blog.toidinamai.de/en/programming/SCM_RIGHTS
Best regards
linaro-mm-sig@lists.linaro.org