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, 0 is returned. slay. πŸ‘‘
  • On error, -1 is returned, and errno is set to indicate the error. not slay. πŸ’€

😭 ERRORS 😭

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