Actions
Feature #5945
openAdd the ability to mark a at_exit as process-local.
Feature #5945:
Add the ability to mark a at_exit as process-local.
Description
I'd like to propose a enhancement to at_exit.
It would be nice if you could stop a at_exit handler from running in subprocesses.
You can do this manually with this code:
You can also do it by bypassing handlers:
But it would be nice if I could do:
The first approach is kind of ugly, and the second approach isn't sustainable if code outside
your control can fork(…) without calling exit!.
Actions