On Mon, Feb 05, 2024 at 03:55:32PM +0100, Oleg Nesterov wrote: > copy_process() just needs to pass PIDFD_THREAD to __pidfd_prepare() > if clone_flags & CLONE_THREAD. > > We can also add another CLONE_ flag (or perhaps reuse CLONE_DETACHED) > to enforce PIDFD_THREAD without CLONE_THREAD. > > Originally-from: Tycho Andersen <tycho@tycho.pizza> Goes without saying I suppose, but, Reviewed-by: Tycho Andersen <tandersen@xxxxxxxxxxx> as well. Tycho