OSDN Git Service

signal: Document the strange si_codes used by ptrace event stops
authorEric W. Biederman <ebiederm@xmission.com>
Mon, 26 Jun 2017 18:09:03 +0000 (13:09 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Fri, 12 Jan 2018 20:34:43 +0000 (14:34 -0600)
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
include/uapi/asm-generic/siginfo.h

index cbe1b0c..7158421 100644 (file)
@@ -226,6 +226,11 @@ typedef struct siginfo {
 #define NSIGTRAP       4
 
 /*
+ * There are an additional set of SIGTRAP si_codes used by ptrace
+ * that of the form: ((PTRACE_EVENT_XXX << 8) | SIGTRAP)
+ */
+
+/*
  * SIGCHLD si_codes
  */
 #define CLD_EXITED     1       /* child has exited */