Red Hat Bugzilla – Bug 9883
ping -c option does terminate if destination is unreachable
Last modified: 2008-05-01 11:37:54 EDT
ping command comes with Readhat 6.1 does not terminate with -c option while
the command comes with 6.0 terminate after given packets trasfered in case
of unreachable or reachable host.
for testing i used:
ping -c 2 126.96.36.199 (where 188.8.131.52 is a bogus IP. )
the ping din't terminate ...but man page says it should.
The behavior of ping has changed, you need to specify both "-c <npackets>"
and "-w <nsecs>" to terminate ping with an unreachable host.
Look for iputils-20000120-1 (the package that now contains ping) in Raw Hide.