pid/gid mess improved

Not sure if dependencies are correct. please check.
pid=42 is arbitrary choosen value, should be > 1. Previous version define that to zero. this is wrong.
ppid=1 is parentpid, In general case it should be 1 (init process)