[hackers] [sbase] Die early if signal is invalid in -signum || sin

From: <git_AT_suckless.org>
Date: Tue, 11 Nov 2014 17:34:37 +0100

commit c0f540162f56f18cffd5b110557b2af1951f3780
Author: sin <sin_AT_2f30.org>
Date: Tue Nov 11 16:34:05 2014 +0000

    Die early if signal is invalid in -signum

diff --git a/kill.c b/kill.c
index 52c85e6..12751af 100644
--- a/kill.c
+++ b/kill.c
_AT_@ -58,6 +58,7 @@ main(int argc, char *argv[])
                 sig = strtol(&argv[0][1], &end, 10);
                 if (*end != '\0' || errno != 0)
                         eprintf("%s: bad signal number\n", &argv[0][1]);
+ sig2name(sig);
                 argc--;
                 argv++;
         } else if (strcmp(argv[0], "-l") == 0) {
Received on Tue Nov 11 2014 - 17:34:37 CET

This archive was generated by hypermail 2.3.0 : Tue Nov 11 2014 - 17:36:13 CET