]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
python: Add support for NULL controllers[] in get_processes()
authorTom Hromatka <tom.hromatka@oracle.com>
Fri, 19 May 2023 22:09:54 +0000 (16:09 -0600)
committerTom Hromatka <tom.hromatka@oracle.com>
Mon, 3 Jul 2023 14:58:50 +0000 (08:58 -0600)
commit411f56daf116032584f76f630eb9705fbf8ac67a
treed7b91dbce0387e5786a8f4b0529d332d1d93cbf2
parent407ba326c0e2ae8d02bbe0113ced0abb761e3493
python: Add support for NULL controllers[] in get_processes()

Add support for an empty controllers list in the Python bindings.
The python method, get_processes(), will then send in a NULL pointer
in the controllers field into the C function cgroup_get_procs().

Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Reviewed-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
src/python/libcgroup.pyx