PR_GET_CHILD_SUBREAPER(2const)
β¨ PR_GET_CHILD_SUBREAPER π
okay bestie, so this is a page from the Linux man-pages (the 2const girlies, you know the ones). We're talking about PR_GET_CHILD_SUBREAPER β a lil prctl operation that lets you peek at the "child subreaper" attribute of whatever process is doing the asking. π
π NAME π
PR_GET_CHILD_SUBREAPER β get the "child subreaper" attribute of the calling process
like. it literally just reads the vibe of your own subreaper setting back to you. no cap. π
π LIBRARY π
Standard C library (libc, -lc)
yes bb, the regular one. nothing fancy. π«Ά
π¦ SYNOPSIS π¦
#include <linux/prctl.h> /* Definition of PR_* constants */
#include <sys/prctl.h>
int prctl(PR_GET_CHILD_SUBREAPER, int *isset);
πΈ DESCRIPTION πΈ
okay so here's the tea: this call returns the "child subreaper" setting of the caller, and it drops that answer into the location pointed to by isset. β¨
that's it. that's the whole function. she's simple, she's iconic, she's not doing too much. π
π« RETURN VALUE π«
- On success,
0is returned. π - On error,
-1is returned, anderrnois set to indicate the error. π
π ERRORS π
EFAULTβissetis an invalid address. like girl, that pointer is not it. π
π STANDARDS π
Linux. (just Linux, bestie β she's a Linux exclusive. iykyk) π
π°οΈ HISTORY π°οΈ
Linux 3.4. so she's been around, she's got main character energy from day one. β
π₯ SEE ALSO π₯
and that's the whole page bb, no notes π
this slay was brought to you by Linux man-pages 6.20, dated 2026-02-08, giving PR_GET_CHILD_SUBREAPER(2const) real estate in the terminal since forever. periodt. πβ¨π
π¦ where this page comes from
- arch rolling: man-pages 6.20-1 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- nixpkgs unstable: man-pages 6.20
- π the page's license: Linux-man-pages-copyleft
- Copyright 2012-2015, Michael Kerrisk <mtk.manpages@gmail.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms