]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
ftests/cgroup: Add timeout to cgrulesengd
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Thu, 3 Jul 2025 23:51:48 +0000 (05:21 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Mon, 14 Jul 2025 17:37:53 +0000 (11:37 -0600)
commitec082fe9ad3e49313756fbc6ffa86f54c58ffc69
treefce422486790fa9a0bf6cf283b6f381dba481832
parent728267fb8f1f2b7e3df988cb5c8388f6a9feb7e4
ftests/cgroup: Add timeout to cgrulesengd

cgrulesengd -n (nodaemon mode) runs indefinitely until it is terminated
with SIGKILL. To handle this, introduce a 20-second timeout that is
passed to __run(), which in turn calls subproc.kill() to terminate
cgrulesengd once the timer expires.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
(cherry picked from commit 5455ce91abc01981260c55b405b2f4d9d36769cf)
tests/ftests/cgroup.py