Originally Posted by lvlra
That makes sense as it would look to its parents ancestor which is generally given a value of 1. Thank you.
No - it always goes to 1.
the problem is that in general, shells can only wait for their own children as that is the only ones that can signal an exit. Children of children don't get reparented to the parent, as that is unknown (there is the possibility of a process group, but identifying who the group leader is is problematical since it could have exited between the time the search starts looking for it, and the time it would be found).
So processes that get abandoned when the parent exits are normally reparented to init.