Comment Comment by leg std::quick_exit() also works, though you can decide if it's worthwhile to allow parts of the program to register functions to be called at quick exit time. parent leg 2 years ago