mirror of https://github.com/mkerrisk/man-pages
sigaction.2: Show the prototype of an SA_SIGINFO signal handler
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
69ccc9f11d
commit
2a73d3e870
|
@ -262,12 +262,29 @@ This flag is meaningful only when establishing a signal handler.
|
|||
.\" .I sa_sigaction
|
||||
.\" field was added in Linux 2.1.86.)
|
||||
.RE
|
||||
.PP
|
||||
.SS The siginfo_t argument to a SA_SIGINFO handler
|
||||
When the
|
||||
.B SA_SIGINFO
|
||||
flag is specified in
|
||||
.IR act.sa_flags ,
|
||||
the signal handler address is passed via the
|
||||
.IR act.sa_sigaction
|
||||
field.
|
||||
This handler takes three arguments, as follows:
|
||||
|
||||
.nf
|
||||
.in +4n
|
||||
void
|
||||
handler(int sig, siginfo_t *info, void *ucontext)
|
||||
{
|
||||
...
|
||||
}
|
||||
.in
|
||||
.fi
|
||||
|
||||
The
|
||||
.I siginfo_t
|
||||
argument to
|
||||
.I sa_sigaction
|
||||
is a struct with the following fields:
|
||||
data type is a structure with the following fields:
|
||||
.sp
|
||||
.in +4n
|
||||
.nf
|
||||
|
|
Loading…
Reference in New Issue