Re:Bus1: a new Linux interprocess communication proposal
by CJefferson on Thursday August 18, 2016 @04:43AM
(#12311150)
How do you pass a file descriptor through a socket? They just take bytes?
If you mean "I send some bytes that describes the file to open, and keep my processes in sync manually", of course you can do that, but true passing would allow a number of cool things.
Re:Bus1: a new Linux interprocess communication proposal
by ahoka on Thursday August 18, 2016 @04:49AM
(#12311173)
By passing it as ancillary data: http://linux.die.net/man/3/cmsg
Good that my code doesn't know this. It would stop working.
> The descriptors and authentication part is key, [...]
If by "authentication" you mean "checking PID/UID/GID", we already have both in unix sockets.