News for hackers. Stuff that matters.
Re:Tokio and Prctl = Nasty Bug by timhh on Monday February 24, 2025 @04:32AM (#43157521)
> PR_SET_CHILD_SUBREAPER

I wrote a tool that does just this: https://github.com/timmmm/anakin

If you run `anakin <some command>` it will kill any orphan processes that <some command> makes.

However is still isn't the true "orphans of this process must automatically die" option that everyone writing job control software wants - if `anakin` itself somehow crashes then the orphans can live again.

Still it was the best I could come up with that didn't need root.

Re:Tokio and Prctl = Nasty Bug by badmintonbaseba on Monday February 24, 2025 @06:26AM (#43158293)
The name of the tool is on point.