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

index f16edbc38166abfe64f5760f62fd5192b02e85a9..6ab540a690149eae96f5af31fd6890383b389994 100644 (file)
@@ -6637,7 +6637,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);