From c25b1433b536efd5be59077182e749afa57d537e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20L=C3=B6nnhager?= Date: Fri, 8 Sep 2023 17:19:51 +0200 Subject: [PATCH] fixup: split tunnel --- talpid-core/src/split_tunnel/linux.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/talpid-core/src/split_tunnel/linux.rs b/talpid-core/src/split_tunnel/linux.rs index 1141dd36c006..67d671d13cbf 100644 --- a/talpid-core/src/split_tunnel/linux.rs +++ b/talpid-core/src/split_tunnel/linux.rs @@ -125,8 +125,6 @@ impl PidManager { pub fn remove(&self, pid: i32) -> Result<(), Error> { // FIXME: We remove PIDs from our cgroup here by adding // them to the parent cgroup. This seems wrong. - let exclusions_path = self.net_cls_path.join("cgroup.procs"); - let mut file = self .open_parent_cgroup_handle() .map_err(Error::RemoveCGroupPid)?; @@ -175,6 +173,6 @@ impl PidManager { fs::OpenOptions::new() .write(true) .create(true) - .open(exclusions_path) + .open(self.net_cls_path.join("cgroup.procs")) } }