quick_exit(3)

quick_exit3

Exits a program quickly, running minimal cleanup

Usage

#include <stdlib.h>

_Noreturn void

quick_exit(int status);

Library

Standard C Library (libc, -lc)

Overview

The quick_exit() function exits the program quickly calling any cleanup functions registered with at_quick_exit(3) but not any C++ destructors or cleanup code registered with atexit(3). The stdio(3) file buffers are not flushed.

The function quick_exit() is async-signal safe when the functions registered with at_quick_exit(3) are.

Return values

The quick_exit() function does not return.

Releases

Unchanged in 13 releases since macOS 15.0.

  1. 15.0–26.5

Standards

The quick_exit() function conforms to ISO/IEC 9899:2011 (“ISO C11”).

From Libc 1752.120.2 in macOS 26.5. Parsed by carta from the page's mdoc source.