Module Name:    src
Committed By:   kamil
Date:           Tue Jan 10 00:51:56 UTC 2017

Modified Files:
        src/share/man/man2: siginfo.2

Log Message:
Document TRAP_CHLD in siginfo(2)

The SIGTRAP signal is thrown from the kernel if EVENT_MASK (ptrace_event)
enables PTRACE_FORK. This new si_code helps debuggers to distinguish the
exact source of signal delivered for a debugger.

Another purpose of TRAP_CHLD is to retain the same behavior inside the
NetBSD kernel for process child traps and have an interface to monitor it.

Retrieving exact event and extended properties of process child trap is
available with PT_GET_PROCESS_STATE.

There is no behavior change for existing software.

This si_code value is NetBSD extension.

Sponsored by <The NetBSD Foundation>


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/share/man/man2/siginfo.2

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man2/siginfo.2
diff -u src/share/man/man2/siginfo.2:1.19 src/share/man/man2/siginfo.2:1.20
--- src/share/man/man2/siginfo.2:1.19	Sun Jan  8 13:53:28 2017
+++ src/share/man/man2/siginfo.2	Tue Jan 10 00:51:56 2017
@@ -1,4 +1,4 @@
-.\"	$NetBSD: siginfo.2,v 1.19 2017/01/08 13:53:28 wiz Exp $
+.\"	$NetBSD: siginfo.2,v 1.20 2017/01/10 00:51:56 kamil Exp $
 .\"
 .\" Copyright (c) 2003 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -27,7 +27,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd January 7, 2017
+.Dd January 10, 2017
 .Dt SIGINFO 2
 .Os
 .Sh NAME
@@ -229,6 +229,8 @@ Object-specific hardware error
 .Bl -tag -width TRAP_BRKPT
 .It TRAP_BRKPT
 Process breakpoint
+.It TRAP_CHLD
+Process child trap
 .It TRAP_EXEC
 Process exec trap
 .It TRAP_TRACE
@@ -378,6 +380,8 @@ The
 functionality first appeared in
 .At V.4 .
 .Pp
+.Dv TRAP_CHLD
+and
 .Dv TRAP_EXEC
 first appeared
 in

Reply via email to