---
name: "exit_group"
section: "2"
platform: "linux"
package: "man-pages"
version: "6.19-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/exit_group"
---

# exit\_group(2)

exit all threads in a process

## NAME

exit\_group - exit all threads in a process

## LIBRARY

Standard C library (*libc*, *-lc*)

## SYNOPSIS

```
#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)](/syscall/2.md).

## DESCRIPTION

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

## RETURN VALUE

This system call does not return.

## STANDARDS

Linux.

## HISTORY

Linux 2.5.35.

## NOTES

Since glibc 2.3, this is the system call invoked when the [**\_exit**(3)](/_exit/3.md) wrapper function is called.

## SEE ALSO

[**exit**(2)](/exit/2.md), [**\_exit**(3)](/_exit/3.md)
