Debian Codegraph @

upstream/debian-unstable/man2/PR_GET_PDEATHSIG.2const

raw
1 .\" Copyright 1998-1999, Andries E. Brouwer <[email protected]>
2 .\" Copyright 2002-2015, Michael Kerrisk <[email protected]>
3 .\" Copyright, the authors of the Linux man-pages project
4 .\"
5 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
6 .\"
7 .TH PR_GET_PDEATHSIG 2const 2026-02-08 "Linux man-pages 6.18"
8 .SH NAME
9 PR_GET_PDEATHSIG
10 \-
11 get the parent-death signal number of the calling process
12 .SH LIBRARY
13 Standard C library
14 .RI ( libc ,\~ \-lc )
15 .SH SYNOPSIS
16 .nf
17 .BR "#include <linux/prctl.h>" " /* Definition of " PR_* " constants */"
18 .B #include <sys/prctl.h>
19 .P
20 .BI "int prctl(PR_GET_PDEATHSIG, int *" sig );
21 .fi
22 .SH DESCRIPTION
23 Return the parent-death signal number of the calling process,
24 in the location pointed to by
25 .IR sig .
26 .SH RETURN VALUE
27 On success,
28 0 is returned.
29 On error, \-1 is returned, and
30 .I errno
31 is set to indicate the error.
32 .SH ERRORS
33 .TP
34 .B EFAULT
35 .I sig
36 is an invalid address.
37 .SH STANDARDS
38 Linux.
39 .SH HISTORY
40 Linux 2.3.15.
41 .SH SEE ALSO
42 .BR signal (2),
43 .BR PR_SET_PDEATHSIG (2const)