QUICK_EXIT(3)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1

This is the QUICK_EXIT(3) page from the Library Functions Manual, bestie β€” and it’s all about the β€œbye, no long goodbyes” way to leave a program πŸ’…

✨ NAME ✨

quick_exit β€” exits a program quickly, running minimal cleanup πŸƒβ€β™€οΈπŸ’¨

🫢 LIBRARY 🫢

Standard C Library (libc, -lc) β€” iconic, classic, literally in the name πŸ’–

🌸 SYNOPSIS 🌸

#include <stdlib.h>

_Noreturn void
quick_exit(int status);

πŸ’… DESCRIPTION πŸ’…

Okay so quick_exit() exits the program quickly. Like, it calls any cleanup functions registered with at_quick_exit(3), but it does not call any C++ destructors, and it does not run cleanup code registered with atexit(3). Not those. Nope πŸ™ˆ

Also: the stdio(3) file buffers are not flushed. So don’t expect a cute little buffer flush on the way out 😭

And here’s the vibe check: quick_exit() is async-signal safe when the functions registered with at_quick_exit(3) are. Periodt ⭐

🌈 RETURN VALUES 🌈

quick_exit() does not return. It’s gone. It said what it said πŸ’€πŸ‘‘

πŸ¦‹ SEE ALSO πŸ¦‹

πŸŽ€ STANDARDS πŸŽ€

The quick_exit() function conforms to ISO/IEC 9899:2011 (β€œISO C11”) β€” certified standards girlie behavior πŸ‘‘βœ¨


Sign-off: this page is from Debian, dated November 4, 2017, and yes bestie, it’s the QUICK_EXIT(3) manual page πŸ«ΆπŸ’–

πŸ“¦ where this page comes from