Fwd: why are init's arguments wiped ?
Didier Kryn
kryn at in2p3.fr
Mon Feb 1 21:33:55 UTC 2016
Le 01/02/2016 18:10, Mike Frysinger a écrit :
> it makes a lot of sense when you fork children that have specific purposes.
> rather than just seeing the program's name 4 times, it's more helpful for
> them to be broken up.
prctl() can be used for that, with the operation code PR_SET_NAME.
It does not change the command line. Option -c in top, and I think also
in ps, displays command name instead of command line.
I also find that wiping ones own command arguments is impolite, but
relying on them is obviously non-portable.
My 2 cents.
Didier
More information about the busybox
mailing list