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

# PR\_GET\_CHILD\_SUBREAPER(2const)

get the "child subreaper" attribute of the calling process

## NAME

PR\_GET\_CHILD\_SUBREAPER - get the "child subreaper" attribute of the calling process

## LIBRARY

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

## SYNOPSIS

```
#include <linux/prctl.h>  /* Definition of PR_* constants */
#include <sys/prctl.h>
```

**int prctl(PR\_GET\_CHILD\_SUBREAPER, int \****isset***);**

## DESCRIPTION

Return the "child subreaper" setting of the caller, in the location pointed to by *isset*.

## RETURN VALUE

On success, 0 is returned. On error, -1 is returned, and *errno* is set to indicate the error.

## ERRORS

- **EFAULT**

  *isset* is an invalid address.

## STANDARDS

Linux.

## HISTORY

Linux 3.4.

## SEE ALSO

[**prctl**(2)](/prctl/2.md), [**PR\_SET\_CHILD\_SUBREAPER**(2const)](/PR_SET_CHILD_SUBREAPER/2const.md)
