Patch from Stephane Billiart to improve ash error message.
authorRob Landley <rob@landley.net>
Sun, 14 Aug 2005 19:16:51 +0000 (19:16 -0000)
committerRob Landley <rob@landley.net>
Sun, 14 Aug 2005 19:16:51 +0000 (19:16 -0000)
shell/ash.c

index 9660890f9881e94c52d3aa353417264cf276d81a..5f859a1fbdce283bdb385354bf7741a366038292 100644 (file)
@@ -6606,7 +6606,7 @@ usage:
                } else
                        pid = number(*argv);
                if (kill(pid, signo) != 0) {
-                       sh_warnx("%m\n");
+                       sh_warnx("kill %d: %s", pid, errmsg(errno, NULL));
                        i = 1;
                }
        } while (*++argv);