ipc-channel icon indicating copy to clipboard operation
ipc-channel copied to clipboard

Ability to send arbitrary FDs across processes

Open mitsuhiko opened this issue 5 years ago • 3 comments

Currently only channels and shared memory regions can be sent via IPC. It would be nice if one could serialize arbitrary objects implementing IntoRawFd and FromRawFd.

eg:

let handle = Handle::new(File::open(...).unwrap());
tx.send(handle).unwrap();
let file = rx.recv().unwrap().into_inner();

mitsuhiko avatar Feb 29 '20 23:02 mitsuhiko

Hi, Is there any progress on this? This feature would be very useful.

zaddach avatar Apr 29 '21 10:04 zaddach

Nobody is actively adding features to this crate right now. A pull request to implement this feature would be accepted, however.

jdm avatar Apr 29 '21 14:04 jdm

PR in #276

zaddach avatar Jul 22 '21 16:07 zaddach