From 8f3303e4d82df697af8e7363b3a48012c1e1dfb9 Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Thu, 6 Oct 2011 09:31:00 -0500 Subject: [PATCH] redhat analysis: proc/sig --- proc/sig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proc/sig.c b/proc/sig.c index ea633973..3d6e0584 100644 --- a/proc/sig.c +++ b/proc/sig.c @@ -214,7 +214,7 @@ void pretty_print_signals(void){ while(++i <= number_of_signals){ int n; n = printf("%2d %s", i, signal_number_to_name(i)); - if(i%7) printf(" \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" + n); + if(n>0 && i%7) printf(" \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" + n); else printf("\n"); } if((i-1)%7) printf("\n");