From: Denys Vlasenko Date: Wed, 18 Jan 2012 14:30:56 +0000 (+0100) Subject: Fix old sigaction display X-Git-Tag: v4.7~212 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bbe29b36aa1b3d50ea60ca58d3a6a959ac6237dd;p=strace Fix old sigaction display * signal.c (sys_sigaction): Fix display of sigaction with SIG_DFL/SIG_IGN handlers. Signed-off-by: Denys Vlasenko --- diff --git a/signal.c b/signal.c index 11396bd7..999d1492 100644 --- a/signal.c +++ b/signal.c @@ -1022,20 +1022,20 @@ sys_sigaction(struct tcb *tcp) } #endif /* !USE_PROCFS */ tprintf("{%#lx, ", (long) sa.SA_HANDLER); + } #ifndef LINUX - printsigmask(&sa.sa_mask, 0); + printsigmask(&sa.sa_mask, 0); #else - long_to_sigset(sa.sa_mask, &sigset); - printsigmask(&sigset, 0); + long_to_sigset(sa.sa_mask, &sigset); + printsigmask(&sigset, 0); #endif - tprints(", "); - printflags(sigact_flags, sa.sa_flags, "SA_???"); + tprints(", "); + printflags(sigact_flags, sa.sa_flags, "SA_???"); #ifdef SA_RESTORER - if (sa.sa_flags & SA_RESTORER) - tprintf(", %p", sa.sa_restorer); + if (sa.sa_flags & SA_RESTORER) + tprintf(", %p", sa.sa_restorer); #endif - tprints("}"); - } + tprints("}"); } if (entering(tcp)) tprints(", ");