exit(2)

DESCRIPTION

Terminates the calling thread.

SYNOPSIS

long exit(long status);

RETURN VALUE

  • Returns a non-negative result on success. Negative values are ABI errno codes.

ERRORS

    • Does not return.

ABI

Arguments enter through the direct syscall ABI; validation is performed before entering the process subsystem.