Jeff King [off-list ref] writes:
...
At which point I do wonder if this is better handled by a wrapper
process which simply reaps everything. And indeed, people have already
come up with similar solutions for containers:
https://github.com/Yelp/dumb-init
So I dunno. I am not really opposed to this patch, as it is just adding
some extra cleanup. But it seems like it is really hitting the tip of
the iceberg, and I'm not sure it's an iceberg I'd like to get to the
bottom of.
Thanks for stating what I had on mind a lot better than I said ;-)