exit_group(2)

exit_group2

Exit all threads in a process

Usage

#include <sys/syscall.h>       /* Definition of SYS_* constants */
#include <unistd.h>

[[noreturn]] void syscall(SYS_exit_group, int status);

Note: glibc provides no wrapper for exit_group(), necessitating the use of syscall(2).

Library

Standard C library (libc, -lc)

Overview

This system call terminates all threads in the calling process's thread group.

Return value

This system call does not return.

Notes

Since glibc 2.3, this is the system call invoked when the _exit(3) wrapper function is called.

Releases

12 releases since Debian 3.1 (Sarge); the text changed 11 times.

  1. 3.1
  2. 4.0
  3. 5.0
  4. 6.0
  5. 7
  6. 8
  7. 9
  8. 10
  9. 11
  10. 12
  11. 13
  12. Arch

Standards

Linux.

History

Linux 2.5.35.

From man-pages 6.19-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.