Fwd: why are init's arguments wiped ?
Mike Frysinger
vapier at gentoo.org
Mon Feb 1 22:34:57 UTC 2016
On 01 Feb 2016 22:33, Didier Kryn wrote:
> 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.
right, but that has its own limitations:
- it's new to linux-2.6.9
- can only set the name
- is limited to 16 bytes
- can't change command line args
so we're still stuck with this behavior of modifying the argv mem directly :(
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20160201/381e52a1/attachment.asc>
More information about the busybox
mailing list