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 18.104.22.168 (where 22.214.171.124 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.