I have a process (X) that is spawned by another process (Y). Prior to the spawn, Y set itself as a subreaper (using prctrl PR_SET_CHILD_SUBREAPER). Is there any way X (or a fork from X) can skip Y and have its ppid be 1 (init)?
I have a process (X) that is spawned by another process (Y). Prior to the spawn, Y set itself as a subreaper (using prctrl PR_SET_CHILD_SUBREAPER). Is there any way X (or a fork from X) can skip Y and have its ppid be 1 (init)?