]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
ftests: Retry getting pid of sleep process
authorTom Hromatka <tom.hromatka@oracle.com>
Tue, 1 Apr 2025 17:41:01 +0000 (17:41 +0000)
committerTom Hromatka <tom.hromatka@oracle.com>
Wed, 2 Apr 2025 18:44:17 +0000 (12:44 -0600)
commit36763c9f158bf8a8ca65d4701f1f2ef8ef83d79c
treee59eb44b470b65dbbd7aacd3bdb4128dbcc15cd0
parent2d8846d37f32c0a787d5c59c01db9df3b4da246b
ftests: Retry getting pid of sleep process

The ftests framework uses sleeping processes to test various cgroup
features.  Sometimes ps throws an error when we try to enumerate
processes via `ps x` within an lxc container.

The error thrown by ps is as follows:
Signal 21 (TTIN) caught by ps (3.3.17).
ps:ps/display.c:70: please report this bug

Fix this by adding a retry loop for the ps command, as it usually works
in a subsequent pass.

Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Acked-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
tests/ftests/process.py