summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2024-05-06 14:48:40 +0200
committerHelmut Grohne <helmut@subdivi.de>2024-05-06 14:48:40 +0200
commite42cc93582ce11f53f7336abcacff4681699384d (patch)
tree741533afa6270e2dc8b28953d1781cb9e44af433
parentb0874c6086f19809b1adf7f5e7a755ac6f146c9e (diff)
downloadpython-linuxnamespaces-e42cc93582ce11f53f7336abcacff4681699384d.tar.gz
examples/cgroup.py: use the assigned cgroup
Fixes: b0874c6086f1 ("lift the dbus functionality from the cgroup example")
-rwxr-xr-xexamples/cgroup.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/cgroup.py b/examples/cgroup.py
index 28a1f7c..5fa5df6 100755
--- a/examples/cgroup.py
+++ b/examples/cgroup.py
@@ -45,6 +45,7 @@ def main() -> None:
properties={"Delegate": True},
),
)
+ mycgroup = get_cgroup()
except NotImplementedError:
linuxnamespaces.systemd.reexec_as_transient_unit(
properties={"Delegate": True}