From 05efbf2460c6762cd259da52333809b97d9a42cf Mon Sep 17 00:00:00 2001 From: patohru Date: Thu, 17 Sep 2026 00:06:02 +0700 Subject: [PATCH 1/2] debug --- src/sandbox/mod.rs | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/sandbox/mod.rs b/src/sandbox/mod.rs index 7b3b1ab..4c5e61b 100644 --- a/src/sandbox/mod.rs +++ b/src/sandbox/mod.rs @@ -46,19 +46,7 @@ impl Sandbox { } pub fn spawn(&self, mut command: Command) -> io::Result { - let cgroup = self.cgroup.clone(); - - unsafe { - command - .pre_exec(move || { - let id = process::id(); - - cgroup - .add_task_by_tgid(CgroupPid::from(id as u64)) - .map_err(io::Error::other) - }) - .spawn() - } + command.spawn() } pub async fn monitor(&self, mut child: Child) -> io::Result<(Option, Duration, Byte)> { From 23614ffebe4e92d2e1600d8fb277ea9c6b388a35 Mon Sep 17 00:00:00 2001 From: patohru Date: Thu, 17 Sep 2026 00:07:55 +0700 Subject: [PATCH 2/2] debug --- src/sandbox/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sandbox/mod.rs b/src/sandbox/mod.rs index 4c5e61b..5b3caf9 100644 --- a/src/sandbox/mod.rs +++ b/src/sandbox/mod.rs @@ -1,7 +1,7 @@ mod cgroup; mod resource; -use std::{io, os::unix::process::ExitStatusExt, process, time::Duration}; +use std::{io, os::unix::process::ExitStatusExt, time::Duration}; use tokio::{ process::{Child, Command},