Added missing "="
Added missing running_child check in while loop.