busybox/init
Nicolas Carrier 29eae728e9 init: make the command-line rewrite optional
When launched as PID 1 and after parsing its arguments, init wipes all
all of them except argv[0] and rewrites argv[0] to contain only "init",
so that its command-line appears solely as "init" in tools such as ps.

This patch adds the FEATURE_INIT_MODIFY_CMDLINE which, if set to n, will
make init preserve all its arguments including argv[0], be they parsed or
ignored.
The original command-line used to launch init can then be retrieved in
/proc/1/cmdline on Linux, for example.

Signed-off-by: Nicolas Carrier <nicolas.carrier@parrot.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2016-02-11 14:23:33 +01:00
..
bootchartd.c bootchartd: warn if .config looks wrong 2013-11-03 00:07:31 +01:00
Config.src init/*: move applet/kbuild/config/help bits into applet source files 2010-10-12 13:47:15 +02:00
halt.c *: Switch to POSIX utmpx API 2015-04-02 23:03:46 +02:00
init.c init: make the command-line rewrite optional 2016-02-11 14:23:33 +01:00
Kbuild.src init/*: move applet/kbuild/config/help bits into applet source files 2010-10-12 13:47:15 +02:00
mesg.c mesg: operate on stdin, not on stderr (compat) 2011-03-28 00:59:16 +02:00
reboot.h *: trailing empty lines removed 2010-07-26 01:49:12 +02:00