It indirectly does, unless you unset it the child dying will trigger another run of PDEATHSIG on the grandchildren, and so on. (The setting is retained across forks, as shown in the original article.)
It indirectly does, unless you unset it the child dying will trigger another run of PDEATHSIG on the grandchildren, and so on. (The setting is retained across forks, as shown in the original article.)
I tries the subreaper approach, but it doesn't help. The children are reparented to the worker, but when the worker dies, they are then just reparented to init, like normally.
If you want to write a process manager, one of the process manager's responsibilities is waiting on its children.
That’s not what the man page says:
> The parent-death signal setting is cleared for the child of a fork(2).
https://man7.org/linux/man-pages/man2/pr_set_pdeathsig.2cons...
Unless the man page is wrong?
(The article sets it after forking.)