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, 0 is returned. πŸŽ‰
  • On error, -1 is returned, and errno is set to indicate the error. 😭

πŸ’€ ERRORS πŸ’€

  • EFAULT β€” isset is 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
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms