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

Li Wang <[email protected]>
Newsgroups gmane.linux.ltp
Message-ID <[email protected]>
On Tue, Jun 16, 2026 at 10:30:07AM +0200, Andrea Cervesato wrote:
> From: Andrea Cervesato <andrea.cervesato-IBi9RG/[email protected]>
> 
> 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-IBi9RG/[email protected]>

Reviewed-by: Li Wang <[email protected]>

-- 
Regards,
Li Wang

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.