Keep looping if expectedPid matches process id and we are checking for a stopped process
Keep looping if expectedPid matches process id and we are checking for a stopped process

aws/amazon-ecs-agent,aws/amazon-ecs-agent,aws/amazon-ecs-agent,aws/amazon-ecs-agent