summaryrefslogtreecommitdiffstats
path: root/crates/runner/src/task.rs
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2021-10-27 00:29:49 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2021-10-27 00:44:28 +0200
commitb1daed6f50a3b63e4166a873fe35deff37b65c21 (patch)
tree8f8f6703f21543d559719dcac26a18876157a407 /crates/runner/src/task.rs
parent6b81db6b8d42445db25ebe095f3233816c29e0d5 (diff)
downloadrebel-b1daed6f50a3b63e4166a873fe35deff37b65c21.tar
rebel-b1daed6f50a3b63e4166a873fe35deff37b65c21.zip
runner: get rid of spawn argument funnelling
Diffstat (limited to 'crates/runner/src/task.rs')
-rw-r--r--crates/runner/src/task.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/runner/src/task.rs b/crates/runner/src/task.rs
index 2b0070b..dc15ec5 100644
--- a/crates/runner/src/task.rs
+++ b/crates/runner/src/task.rs
@@ -319,15 +319,14 @@ fn run_task(input_hash: &InputHash, task: &Task, jobserver: &mut Jobserver) -> R
process::exit(127);
};
- let (pid, ()) = unsafe {
+ let pid = unsafe {
ns::spawn(
CloneFlags::CLONE_NEWNS
| CloneFlags::CLONE_NEWPID
| CloneFlags::CLONE_NEWIPC
| CloneFlags::CLONE_NEWNET
| CloneFlags::CLONE_NEWUTS,
- (),
- |()| exec_cmd().unwrap(),
+ || exec_cmd().unwrap(),
)
}
.context("Failed to run task container")?;