1
0
Fork 0
forked from wry/wry

config: allow attaching file descriptors to commands

This commit is contained in:
Julian Orth 2024-03-06 19:44:43 +01:00
parent a1ba476e68
commit 2037a37c1e
8 changed files with 96 additions and 29 deletions

View file

@ -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_(