mirror of https://github.com/mkerrisk/man-pages
ptrace.2: Add description for PTRACE_PEEKSIGINFO
Retrieve signals without removing them from a queue. Signed-off-by: Andrey Vagin <avagin@openvz.org> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
1509ca0e37
commit
7a535f54fb
|
@ -317,6 +317,45 @@ itself.
|
|||
.RI ( addr
|
||||
is ignored.)
|
||||
.TP
|
||||
.BR PTRACE_PEEKSIGINFO " (since Linux 3.10)"
|
||||
.\" commit 84c751bd4aebbaae995fe32279d3dba48327bad4
|
||||
Retrieve
|
||||
.I siginfo_t
|
||||
structures without removing signals from a queue.
|
||||
.I addr
|
||||
points to a
|
||||
.I ptrace_peeksiginfo_args
|
||||
structure.
|
||||
.I siginfo_t
|
||||
structures are copied into the buffer starting at
|
||||
.I data.
|
||||
The return value contains a number of copied signals (zero indicates
|
||||
that a signal with this sequence number doesn't exist).
|
||||
A result
|
||||
.I siginfo
|
||||
contains a kernel part of
|
||||
.IR si_code
|
||||
(
|
||||
.BR __SI_CHLD,
|
||||
.BR __SI_FAULT,
|
||||
etc), which is not shown in other places.
|
||||
.PP
|
||||
.in +10n
|
||||
.nf
|
||||
struct ptrace_peeksiginfo_args {
|
||||
u64 off; /* from which siginfo to start */
|
||||
u32 flags;
|
||||
s32 nr; /* how may siginfos to take */
|
||||
};
|
||||
.fi
|
||||
|
||||
Currently here is only one flag
|
||||
.BR PTRACE_PEEKSIGINFO_SHARED
|
||||
for dumping signals from process-wide queue.
|
||||
If this flag is not set, signals are read from a per-thread queue.
|
||||
.in
|
||||
.PP
|
||||
.TP
|
||||
.BR PTRACE_SETOPTIONS " (since Linux 2.4.6; see BUGS for caveats)"
|
||||
Set ptrace options from
|
||||
.IR data .
|
||||
|
|
Loading…
Reference in New Issue