Re: [PATCH] pidfd: getfd should always report ESRCH if a task is exiting

From: Tycho Andersen
Date: Tue Feb 06 2024 - 14:35:22 EST


On Tue, Feb 06, 2024 at 08:25:54PM +0100, Oleg Nesterov wrote:
> But Tycho, I won't insist. If you prefer to check PF_EXITING, I am fine.

Looks like we raced, I sent a v2 with PF_EXITING, mostly because I
didn't want to run into weird things I didn't understand. I'm happy to
fix it up to check ->files if that's what you prefer Christian?

Tycho