quick_exit performs expedited program termination by invoking functions registered with at_quick_exit. It provides an alternative to normal atexit handling when that handling would take too long; use it with care. section 8.7
Choosing an alternative termination path
Register a no-argument termination handler with at_quick_exit, then call quick_exit(status) when the normal atexit handler list is too time-consuming. The registered function is passed as a reference, not called during registration. section 8.7
Distinguish quick_exit from the more severe termination functions:
- _Exit inhibits application-specific handlers, while abort also inhibits some system cleanups. section 8.7

