command-fds
A library for passing arbitrary file descriptors when spawning child processes.
Example
use ;
use File;
use AsRawFd;
use Command;
// Open a file.
let file = open.unwrap;
// Prepare to run `ls -l /proc/self/fd` with some FDs mapped.
let mut command = new;
command.arg.arg;
command
.fd_mappings
.unwrap;
// Spawn the child process.
let mut child = command.spawn.unwrap;
child.wait.unwrap;
License
Licensed under the Apache License, Version 2.0.
Contributing
If you want to contribute to the project, see details of how we accept contributions.