Re: [PATCH] pidfd: clone: allow CLONE_THREAD | CLONE_PIDFD together
From: Tycho Andersen
Date: Tue Feb 06 2024 - 09:53:05 EST
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