On 2018-01-11 10:44 -0500, The Wanderer wrote: > On 2018-01-11 at 10:35, Greg Wooledge wrote: > >> wooledg:~$ ls -l /sbin/init >> lrwxrwxrwx 1 root root 20 Jul 5 2017 /sbin/init -> /lib/systemd/systemd >> wooledg:~$ cat /proc/1/comm >> systemd > > So it's smart enough to bypass the name of the symlink when populating > this node?
No, it is systemd itself which sets its title, very early on in main(): ,---- | static char systemd[] = "systemd"; | [...] | /* If we get started via the /sbin/init symlink then we are | called 'init'. After a subsequent reexecution we are then | called 'systemd'. That is confusing, hence let's call us | systemd right-away. */ | program_invocation_short_name = systemd; | (void) prctl(PR_SET_NAME, systemd); `---- Cheers, Sven