servo / ipc-channel

A multiprocess drop-in replacement for Rust channels
Apache License 2.0
840 stars 125 forks source link

Ability to send arbitrary FDs across processes #263

Open mitsuhiko opened 4 years ago

mitsuhiko commented 4 years ago

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();
zaddach commented 3 years ago

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

jdm commented 3 years ago

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

zaddach commented 3 years ago

PR in #276