RE: https://mastodon.social/@brauner/116071424787849407

I took it one step further and implemented both CLONE_AUTOREAP (now for non-pidfd as well) and CLONE_PIDFD_AUTOKILL (requires no new privileges for the child now):

https://patch.msgid.link/20260223-work[email protected]

@brauner Any chance of having a transitive CLONE_PIDFD_AUTOKILL, so that not only does the child die, but so do all of its transitive descendents?

One can do this with cgroups, but itโ€™s much more annoying and the cgroups themselves have to be cleaned up.

@alwayscurious Yeah, I think we could reasonably add `CLONE_PIDFD_AUTOKILL_TREE` or something. @jann