]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
ftests/cgroup: Add timeout to cgrulesengd main
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:10:42 +0000 (11:10 -0600)
commit5455ce91abc01981260c55b405b2f4d9d36769cf
treed273b73ab29b763f51bb24eb8cf96ad0f5ca50cd
parent0e54d8ea10d04b49124915bdd6cd7d1e5516b722
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>
tests/ftests/cgroup.py