[LTP] [PATCH v2 2/2] tst_cgroup: tolerate ESRCH in cgroup_drain()

Li Wang li.wang@linux.dev
Tue Jun 16 14:13:18 CEST 2026


On Tue, Jun 16, 2026 at 10:30:07AM +0200, Andrea Cervesato wrote:
> From: Andrea Cervesato <andrea.cervesato@suse.com>
> 
> A process can die between reading cgroup.procs and writing its PID
> to the destination cgroup. When this happens, the kernel returns
> ESRCH which is a normal race condition, not a test infrastructure
> failure.
> 
> Skip ESRCH errors instead of aborting with TBROK.
> 
> Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>

Reviewed-by: Li Wang <li.wang@linux.dev>

-- 
Regards,
Li Wang


More information about the ltp mailing list