PR_GET_PDEATHSIG(2const)
π PR_GET_PDEATHSIG(2const) π
okay so bestie, welcome to the PR_GET_PDEATHSIG(2const) page, from your fave little corner of section 2 β let's get into it π«Ά
β¨ NAME β¨
PR_GET_PDEATHSIG β get the parent-death signal number of the calling process
like. it literally just tells you which signal your process gets yeeted with when its parent dips π
π LIBRARY π
Standard C library (libc, -lc) β the classic, the icon, the one you already linked π
πΈ SYNOPSIS πΈ
#include <linux/prctl.h> /* Definition of PR_* constants */
#include <sys/prctl.h>
int prctl(PR_GET_PDEATHSIG, int *sig);
two headers, one call, and a pointer. that's the whole vibe check π
π¦ DESCRIPTION π¦
Return the parent-death signal number of the calling process, in the location pointed to by sig.
that's it. that's the whole function. she reads the value, she writes it where you told her to, she does not elaborate β¨
π₯ RETURN VALUE π₯
- On success,
0is returned. slay. π - On error,
-1is returned, anderrnois set to indicate the error. not slay. π
π ERRORS π
EFAULTβsigis an invalid address. bestie. you handed her a bad pointer. she cannot write there. it's giving chaos π
π STANDARDS π
Linux. just Linux. that's the whole standards section, periodt π
β HISTORY β
Linux 2.3.15. ancient lore, fr fr π§
π SEE ALSO π
(the setter to this getter, the duo, the main characters π)
that's literally everything babes β this page is from Linux man-pages 6.20, dated 2026-02-08, and yes it ate πβ¨π
π¦ 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 1998-1999, Andries E. Brouwer <aeb@cwi.nl>
- Copyright 2002-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