kill: need not build kill.c when ash's job control is off
ash kill builtin depends on the job control config option. Signed-off-by: Kang-Che Sung <explorer09@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
e7b54d0fcc
commit
53487a8d22
@ -8,8 +8,5 @@ lib-y:=
|
|||||||
|
|
||||||
INSERT
|
INSERT
|
||||||
|
|
||||||
lib-$(CONFIG_ASH) += kill.o # used for built-in kill by ash
|
lib-$(CONFIG_ASH_JOB_CONTROL) += kill.o # used for built-in kill by ash
|
||||||
lib-$(CONFIG_SH_IS_ASH) += kill.o # used for built-in kill by ash
|
|
||||||
lib-$(CONFIG_BASH_IS_ASH) += kill.o # used for built-in kill by ash
|
|
||||||
|
|
||||||
lib-$(CONFIG_HUSH_KILL) += kill.o # used for built-in kill by hush
|
lib-$(CONFIG_HUSH_KILL) += kill.o # used for built-in kill by hush
|
||||||
|
@ -285,8 +285,7 @@ int kill_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
|
|
||||||
/* Looks like they want to do a kill. Do that */
|
/* Looks like they want to do a kill. Do that */
|
||||||
while (arg) {
|
while (arg) {
|
||||||
#if ENABLE_ASH || ENABLE_SH_IS_ASH || ENABLE_BASH_IS_ASH \
|
#if ENABLE_ASH_JOB_CONTROL || ENABLE_HUSH_KILL
|
||||||
|| ENABLE_HUSH_KILL
|
|
||||||
/*
|
/*
|
||||||
* We need to support shell's "hack formats" of
|
* We need to support shell's "hack formats" of
|
||||||
* " -PRGP_ID" (yes, with a leading space)
|
* " -PRGP_ID" (yes, with a leading space)
|
||||||
|
Loading…
Reference in New Issue
Block a user