[PATCH v2 2/2] ioctl console test v2

Bran S archsbran at gmail.com
Tue Mar 17 16:22:48 UTC 2020


On Mon, 16 Mar 2020 at 15:56, Eugene Syromiatnikov <esyr at redhat.com> wrote:
>
> On Mon, Mar 16, 2020 at 03:37:07PM +0530, Bran S wrote:
> > There can be any number of subreapers right ?
>
> In a system? Yes, but the processes are re-parented to the closest one
> up in the process tree hierarchy, so the subreaper a process
> is to be re-parented to is pretty much determined.
>

So we follow the hierarchy upwards and for each pid we check if it is
a subreaper if yes then the ppid should match to it.
Is that correct ? If not please point me in the direction so as to
find the subreaper's process id.


More information about the Strace-devel mailing list