[PATCH v2 2/2] ioctl console test v2
esyr at redhat.com
Tue Mar 17 21:19:32 UTC 2020
On Tue, Mar 17, 2020 at 09:52:48PM +0530, Bran S wrote:
> 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.
Well, I can only repeat the Dmitry's suggestion to check out
the documentation for the respective prctl(2) options.
More information about the Strace-devel