[BusyBox] [PATCH] kill error message
Stephane Billiart
stephane.billiart at gmail.com
Sun Aug 14 11:07:04 MDT 2005
The attached patch fixes the error message when trying to kill a
non-existing pid in ash
BEFORE
# kill 1234
kill: 1: m
AFTER
# kill 1234
kill: 3: kill 1234: No such process
--
Stéphane Billiart http://perso.wanadoo.fr/billiart/
-------------- next part --------------
--- shell/ash.c.orig 2005-08-14 18:56:54.000000000 +0200
+++ shell/ash.c 2005-08-14 18:56:32.000000000 +0200
@@ -6606,7 +6606,7 @@
} 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);
More information about the busybox
mailing list