If you look at the actual code, it runs ping -c 5. I agree ping without options doesn't terminate.