From 61a91af63dbc91f85058efda5c542dfc859ab1be Mon Sep 17 00:00:00 2001 From: Kang-Che Sung Date: Mon, 9 Jan 2017 18:46:58 +0100 Subject: kill: optimizations for single-applet build * Fix a bug with a configuration in which the shell's kill builtin would be mistreated as a killall command (i.e. '-q' works, and 'kill process_name' succeeds when it shouldn't): CONFIG_ASH_JOB_CONTROL=y CONFIG_HUSH_KILL=y # CONFIG_KILL is not set CONFIG_KILLALL=y # CONFIG_KILLALL5 is not set * Optimize out unneeded code when the relevant applets are not selected. * Move kbuild lines about shells' kill builtins from Kbuild.src to kill.c, to accompany the new HAVE_SH_KILL macro. I hope this would make maintanence a little bit easier. Signed-off-by: Kang-Che Sung Signed-off-by: Denys Vlasenko --- procps/Kbuild.src | 3 --- 1 file changed, 3 deletions(-) (limited to 'procps/Kbuild.src') diff --git a/procps/Kbuild.src b/procps/Kbuild.src index dedef8881..6b4fb7470 100644 --- a/procps/Kbuild.src +++ b/procps/Kbuild.src @@ -7,6 +7,3 @@ lib-y:= INSERT - -lib-$(CONFIG_ASH_JOB_CONTROL) += kill.o # used for built-in kill by ash -lib-$(CONFIG_HUSH_KILL) += kill.o # used for built-in kill by hush -- cgit v1.2.3