summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDavid Lönnhager <david.l@mullvad.net>2020-06-02 13:19:40 +0200
committerDavid Lönnhager <david.l@mullvad.net>2020-06-04 14:48:25 +0200
commit48707812900cd46054a307225784f855fcc4b228 (patch)
tree214e7103b4d2250e4f8d66b65679a09df20d4f56
parent9cb04a15b67ce18ee2ab70431e013a3ab662e93b (diff)
downloadmullvadvpn-48707812900cd46054a307225784f855fcc4b228.tar.xz
mullvadvpn-48707812900cd46054a307225784f855fcc4b228.zip
Generalize PidManager::add_list
-rw-r--r--talpid-core/src/split_tunnel/linux.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/talpid-core/src/split_tunnel/linux.rs b/talpid-core/src/split_tunnel/linux.rs
index 57cfd419d7..6359e05669 100644
--- a/talpid-core/src/split_tunnel/linux.rs
+++ b/talpid-core/src/split_tunnel/linux.rs
@@ -87,7 +87,7 @@ impl PidManager {
}
/// Add PIDs to exclude from the tunnel.
- pub fn add_list(&self, pids: &[i32]) -> Result<(), Error> {
+ pub fn add_list<T: Into<i32> + ToString>(&self, pids: &[T]) -> Result<(), Error> {
let exclusions_path = Path::new(NETCLS_DIR)
.join(SPLIT_TUNNEL_CGROUP_NAME)
.join("cgroup.procs");