aboutsummaryrefslogtreecommitdiff
path: root/debianutils
diff options
context:
space:
mode:
authorNicolas Carrier <nicolas.carrier@parrot.com>2016-02-04 12:18:01 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2016-02-11 14:23:33 +0100
commit29eae728e959a382841bd0a32cc1a8d1bcdc9150 (patch)
tree7ccda1c300308023aa99b0b358db1f0571a0b561 /debianutils
parent383201e7258c3c1646f6d5cab4e813b5c3b3ecd0 (diff)
downloadbusybox-29eae728e959a382841bd0a32cc1a8d1bcdc9150.tar.gz
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>
Diffstat (limited to 'debianutils')
0 files changed, 0 insertions, 0 deletions