exit2
Terminate the calling thread
Usage
#include <sys/syscall.h> /* Definition of SYS_* constants */ #include <unistd.h>
[[noreturn]] long syscall(SYS_exit, int status);
Library
Standard C library (libc, -lc)
Overview
exit() terminates the calling thread.
By contrast with _exit(3), the exit() system call terminates only the calling thread, and actions such as reparenting child processes or sending SIGCHLD to the parent process are performed only if this is the last thread in the thread group.
Return value
exit() does not return.
Releases
19 releases since Debian 1.1 (Buzz); the text changed 16 times.