Re: [PATCH v2 1/1] prctl: add PR_{GET,SET}_KILL_DESCENDANTS_ON_EXIT

From: Oleg Nesterov
Date: Fri Nov 30 2018 - 06:22:39 EST


On 11/30, Jürg Billeter wrote:
>
> This introduces a new thread group flag that can be set by calling
>
> prctl(PR_SET_KILL_DESCENDANTS_ON_EXIT, 1, 0, 0, 0)
>
> When a thread group exits with this flag set, it will send SIGKILL to
> all descendant processes. This can be used to prevent stray child
> processes.

Reviewed-by: Oleg Nesterov <oleg@xxxxxxxxxx>