@bjonte For that, there's the simpler abort() mechanism or std::terminate():
https://en.cppreference.com/w/cpp/error/terminate
Both invole the atexit() handlers, which can be used for emergency cleanups (restore the terminal to a functioning state, delete temporary files, dump some debug info...
Bobinas P4G is a social network. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.
All Bobinas P4G content and data are available under the Creative Commons Attribution 3.0 license.