why are init's arguments wiped ?

Nicolas CARRIER carrier.nicolas0 at gmail.com
Thu Jan 28 17:02:16 UTC 2016


Hello,
in init/init.c, l. 1144, there is the following code :

/* Wipe argv[1]-argv[N] so they don't clutter the ps listing */
while (*++argv)
         nuke_str(*argv);

Why are init's arguments wipe ?
I had the hope to pass init some arguments, then read them by looking into
/proc/1/cmdline, but no luck...

Do anyone think it could be possible to remove these lines, at least with a
config option ?

Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20160128/d050abc0/attachment.html>


More information about the busybox mailing list