Skip to content

Commit

Permalink
fixup: split tunnel
Browse files Browse the repository at this point in the history
  • Loading branch information
dlon committed Sep 8, 2023
1 parent 1be4c8b commit c25b143
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions talpid-core/src/split_tunnel/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?;
Expand Down Expand Up @@ -175,6 +173,6 @@ impl PidManager {
fs::OpenOptions::new()
.write(true)
.create(true)
.open(exclusions_path)
.open(self.net_cls_path.join("cgroup.procs"))
}
}

0 comments on commit c25b143

Please sign in to comment.