[PATCH] kill: optimizations for single-applet build

Kang-Che Sung explorer09 at gmail.com
Mon Jan 9 16:57:09 UTC 2017


* 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kill-optimizations.patch
Type: text/x-patch
Size: 5266 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20170110/1a95b71c/attachment-0001.bin>


More information about the busybox mailing list