diff options
author | Helmut Grohne <helmut@subdivi.de> | 2024-05-06 14:48:40 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2024-05-06 14:48:40 +0200 |
commit | e42cc93582ce11f53f7336abcacff4681699384d (patch) | |
tree | 741533afa6270e2dc8b28953d1781cb9e44af433 | |
parent | b0874c6086f19809b1adf7f5e7a755ac6f146c9e (diff) | |
download | python-linuxnamespaces-e42cc93582ce11f53f7336abcacff4681699384d.tar.gz |
examples/cgroup.py: use the assigned cgroup
Fixes: b0874c6086f1 ("lift the dbus functionality from the cgroup example")
-rwxr-xr-x | examples/cgroup.py | 1 |
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} |