]> granicus.if.org Git - procps-ng/commitdiff
redhat analysis: proc/sig
authorJim Warner <james.warner@comcast.net>
Thu, 6 Oct 2011 14:31:00 +0000 (09:31 -0500)
committerSami Kerola <kerolasa@iki.fi>
Sat, 15 Oct 2011 06:26:27 +0000 (08:26 +0200)
proc/sig.c

index ea633973f5bda837d205d3b7afb1aa3f920cb5ee..3d6e05843be47ba73f8a07137913152435ba143e 100644 (file)
@@ -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");