I am new to Operating Systems (specifically Linux) and this is my first question here
I want to ask, can there be two process with CMD = init (as given by
ps - e command).
I had two processes on my laptop with CMD = init (id's 1 (this is default) and 29179). I wrote a c++ program and created a child and waited for parent to exit (orphaned the child) and then checked the child's ppid but it gave 29179.
Here is my C++ program : Prog.cpp (on Ideone all output of stdout is not printed may be the way it is.)
Here is stdout of my C++ Program and output of
ps -e on my laptop (Only 2 links allowed) : output