3 ms·
Interesting idea. A sort of PR_SET_CHILD_SUBREAPER + "if I die, send SIGKILL to all my children" option. That would be handy...
by yrro 5y ago
Interesting idea. A sort of PR_SET_CHILD_SUBREAPER + "if I die, send SIGKILL to all my children" option. That would be handy...
- Joker_vD 5y agoTechnically, it could be implemented if the subreaper process were getting notified somehow of new processes being reparented to it. Alas, subreapers don't get such notifications. Also, you need some protection against children who do "kill(-getpid(), SIGKILL)" before the exit.