Good point, I had overlooked that one. There are some programs that check for pid 1 (I thought
bash did that, and init too). From a pure technical standpoint it shouldn't matter too much
but I can imagine tons of code checking if their parent is 1 (daemonize checks eg.)
Posted Nov 8, 2007 18:43 UTC (Thu) by brouhaha (guest, #1698)
[Link]
I can't think of any good reason for any program (other than perhaps init itself and telinit)
to care what PID init has, and even those could be changed to use a better mechansim.
In particular, whether a program runs as a daemon or not should definitely NOT be determined
by the PPID.
The PID should be viewed as an entirely opaque data type, and shouldn't need namespaces.