config: allow attaching file descriptors to commands
This commit is contained in:
parent
a1ba476e68
commit
2037a37c1e
8 changed files with 96 additions and 29 deletions
|
|
@ -170,8 +170,14 @@ impl ForkerProxy {
|
|||
self.pidfd(pidfd_id).await
|
||||
}
|
||||
|
||||
pub fn spawn(&self, prog: String, args: Vec<String>, env: Vec<(String, String)>) {
|
||||
self.spawn_(prog, args, env, vec![], None)
|
||||
pub fn spawn(
|
||||
&self,
|
||||
prog: String,
|
||||
args: Vec<String>,
|
||||
env: Vec<(String, String)>,
|
||||
fds: Vec<(i32, Rc<OwnedFd>)>,
|
||||
) {
|
||||
self.spawn_(prog, args, env, fds, None)
|
||||
}
|
||||
|
||||
fn spawn_(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue