summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2008-12-17 17:22:03 +0000
committerRoland McGrath <roland@redhat.com>2009-06-02 16:28:09 -0700
commitdf140b592a7aedf5093b070f70ecebecfa56f99b (patch)
tree80e6048994e70a2576ac4593268c12b655ebc7e3
parentbc45ffb2d06794b2d613d22676d43c93650fb341 (diff)
downloadstrace-df140b592a7aedf5093b070f70ecebecfa56f99b.tar.gz
two instances of s/sa_handler == SIG_DFL/sa_handler == SIG_IGN/
-rw-r--r--ChangeLog6
-rw-r--r--signal.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 0b05a5465..d6d0c94d5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-12-17 Denys Vlasenko <dvlasenk@redhat.com>
+
+ * signal.c (sys_sigaction, sys_rt_sigaction): Fix typo
+ in (sa_handler == SIG_IGN) comparison, it was using SIG_DFL
+ instead.
+
2008-12-16 Denys Vlasenko <dvlasenk@redhat.com>
* defs.h: Modify declaration of upeek to take struct tcb *
diff --git a/signal.c b/signal.c
index d63fae459..05ab30a98 100644
--- a/signal.c
+++ b/signal.c
@@ -1124,7 +1124,7 @@ struct tcb *tcp;
tprintf("{SIG_ERR, ");
else if (sa.SA_HANDLER == SIG_DFL)
tprintf("{SIG_DFL, ");
- else if (sa.SA_HANDLER == SIG_DFL) {
+ else if (sa.SA_HANDLER == SIG_IGN) {
#ifndef USE_PROCFS
if (tcp->u_arg[0] == SIGTRAP) {
tcp->flags |= TCB_SIGTRAPPED;
@@ -1888,7 +1888,7 @@ sys_rt_sigaction(tcp)
tprintf("{SIG_ERR, ");
else if (sa.__sigaction_handler.__sa_handler == SIG_DFL)
tprintf("{SIG_DFL, ");
- else if (sa.__sigaction_handler.__sa_handler == SIG_DFL)
+ else if (sa.__sigaction_handler.__sa_handler == SIG_IGN)
tprintf("{SIG_IGN, ");
else
tprintf("{%#lx, ",