]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
src/python: add attach_threads option to attach()
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Mon, 11 Mar 2024 03:37:19 +0000 (09:07 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Wed, 20 Mar 2024 20:40:45 +0000 (14:40 -0600)
commitc378847be688a6a2af6bb0e8e074db10dded0ea3
tree49ef05af3c7127a8a1953233106d6d8e9580e6e4
parent11d233dd59313c42d1414a28449345b0bf18477e
src/python: add attach_threads option to attach()

Add support to move all threads by writing a tid into cgroups
cgroup.procs for the cgroup v1 controller, when attach_threads option in
the attach() is set, by default its false.  When set, it calls
cgroup_attach_thread_tid().

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