Skip to contentSkip to conversation

Update NSIGTRAP in asm-generic/siginfo.h

PATCH New Andi Kleen 1 participant 1 message Apr 4, 2009 Generic include/asm header files

lore
Share & tools
lore

Andi Kleen

author
#0 lore raw

PATCH 1/1 Update NSIGTRAP in asm-generic/siginfo.h

Update NSIGTRAP in asm-generic/siginfo.h

Impact: (nearly) trivial

The patch

commit da654b74bda14c45a7d98c731bf3c1a43b6b74e2

Author: Srinivasa Ds <[email protected]>
Date:   Tue Sep 23 15:23:52 2008 +0530

signals: demultiplexing SIGTRAP signal

forgot to update the NSIGTRAP define in asm-generic/siginfo.h to the new number of sigtrap subcodes. Nothing in the tree seems to use it, but presumably something in user space might. So update it.

Cc Srinivasa Ds <[email protected]>
---
 include/asm-generic/siginfo.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/asm-generic/siginfo.h +1 -1
Index: linux-2.6.29-ak/include/asm-generic/siginfo.h
===================================================================
@@ -201,7 +201,7 @@
 #define TRAP_TRACE	(__SI_FAULT|2)	/* process trace trap */
 #define TRAP_BRANCH     (__SI_FAULT|3)  /* process taken branch trap */
 #define TRAP_HWBKPT     (__SI_FAULT|4)  /* hardware breakpoint/watchpoint */
-#define NSIGTRAP	2
+#define NSIGTRAP	4
 
 /*
  * SIGCHLD si_codes