Re: [RFC PATCH] proc: add support detach proccess's autogroup

From: Peter Zijlstra
Date: Thu Jul 02 2020 - 04:14:38 EST


On Thu, Jul 02, 2020 at 01:20:43PM +0800, Weiping Zhang wrote:
> Since setid will create a autogroup for that process, there is no
> way to detach a process from that autogroup, this patch add a new interface
> to detach a process from its autogroup. You can write anything to
> /proc/<pid>/autogroup_detach to do that.

This is indeed what the patch does; but it fails to tell me why. Why do
we want this? Why should I care about your patch :-)

Please, always explain why you want things done, that can also help us
consider if the proposed solution is the right one.