Fixed bug with non-detached mode when parent is in the same process group.