/proc/<pid>/cmdline and udhcpcd

Matt Whitlock busybox at mattwhitlock.name
Wed Mar 26 02:39:06 UTC 2014


On Tuesday, 25 March 2014, at 10:52 pm, Cristian Ionescu-Idbohrn wrote:
> I find out that using that option:
> 
> 	-x hostname:foo
> 	           ^
> 
> shows up in /proc/<pid>/cmdline as:
> 
> 	-x hostname foo
> 	           ^

/proc/<pid>/cmdline reflects any changes that the process has made to its argv array. It's common when parsing a command line for a program to replace delimiters with null bytes. The /proc/<pid>/cmdline interface converts null bytes to spaces for ease of display and parsing.


More information about the busybox mailing list