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