[PATCH] Fix ash "kill %1" not working if CONFIG_ASH is disabled
Xabier Oneca -- xOneca
xoneca at gmail.com
Sun Jan 8 11:40:59 UTC 2017
Hello Kang-Che,
> diff --git a/procps/kill.c b/procps/kill.c
> index 57a33bcaa..198c78de0 100644
> --- a/procps/kill.c
> +++ b/procps/kill.c
> @@ -285,10 +285,10 @@ int kill_main(int argc UNUSED_PARAM, char **argv)
>
> /* Looks like they want to do a kill. Do that */
> while (arg) {
> -#if ENABLE_ASH || ENABLE_HUSH
> +#if ENABLE_ASH || ENABLE_SH_IS_ASH || ENABLE_BASH_IS_ASH
You dropped ENABLE_HUSH here. Is it intentional?
> /*
> * We need to support shell's "hack formats" of
> - * " -PRGP_ID" (yes, with a leading space)
> + * " -PGRP_ID" (yes, with a leading space)
> * and " PID1 PID2 PID3" (with degenerate case "")
> */
> while (*arg != '\0') {
Cheers,
Xabier Oneca_,,_
More information about the busybox
mailing list