https://github.com/polachok/passfd
One weird unix trick
https://github.com/polachok/passfd
rust
Last synced: about 1 year ago
JSON representation
One weird unix trick
- Host: GitHub
- URL: https://github.com/polachok/passfd
- Owner: polachok
- Created: 2019-03-06T12:25:04.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-04-01T21:32:51.000Z (over 2 years ago)
- Last Synced: 2025-05-11T02:55:38.698Z (about 1 year ago)
- Topics: rust
- Language: Rust
- Homepage:
- Size: 35.2 KB
- Stars: 20
- Watchers: 3
- Forks: 7
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# passfd
[](https://travis-ci.com/polachok/passfd)
Unix sockets possess magic ability to transfer file descriptors from one process to another (unrelated) process using
obscure `SCM_RIGHTS` API. This little crate adds extension methods to [UnixStream](https://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html) to use it.
## Links
* [fd-passing](https://docs.rs/fd-passing/0.0.1/fd_passing/) same thing, different API
* [Good article on fd passing](https://keithp.com/blogs/fd-passing/)