Author: jilles
Date: Wed Sep 19 19:21:22 2012
New Revision: 240704
URL: http://svn.freebsd.org/changeset/base/240704

Log:
  strsignal(): Do not append signal numbers to messages for known signals.
  
  Messages for known signals looked like "Terminated: 15" instead of
  "Terminated".

Modified:
  head/lib/libc/string/strsignal.c

Modified: head/lib/libc/string/strsignal.c
==============================================================================
--- head/lib/libc/string/strsignal.c    Wed Sep 19 19:16:08 2012        
(r240703)
+++ head/lib/libc/string/strsignal.c    Wed Sep 19 19:21:22 2012        
(r240704)
@@ -120,7 +120,6 @@ strsignal(int num)
                        UPREFIX,
 #endif
                        sizeof(sig_ebuf));
-       }
 
        signum = num;
        if (num < 0)
@@ -143,6 +142,7 @@ strsignal(int num)
                        break;
        }
        *p = '\0';
+       }
 
 #if defined(NLS)
        catclose(catd);
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to