Bug 10426 - ping -c hangs indefinitly if no packets received
Summary: ping -c hangs indefinitly if no packets received
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: iputils   
(Show other bugs)
Version: 6.1
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Crutcher Dunnavant
QA Contact:
: 17121 (view as bug list)
Depends On:
TreeView+ depends on / blocked
Reported: 2000-03-30 00:51 UTC by Andrew Turnquist
Modified: 2008-05-01 15:37 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-05-14 18:42:57 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Andrew Turnquist 2000-03-30 00:51:47 UTC
The new version of ping in 6.2 will not exit properly if it does not
receive any packets back.

% ping -c 2 -w 10

The '-c 2' option alone should cause ping to exit after approx. 2 seconds.
The '-w 10', according to the man page should stop execution after 10
seconds, regardless of results.

If the target host is up, all works fine.  If something send back an error,
such as Host Unreachable, it exits properly as well.  However, if the
target host is down and no router (or the local machine) sends an error
back, ping blocks until it is killed.

This causes problems with scripts which use ping to test whether a host
is up or down, something we use heavily at our office for monitoring
network health.  I could spend a few hours rewriting my code to work
around the problem, but it is still a bug.


Comment 1 Pekka Savola 2000-07-12 15:38:16 UTC
This seems to work in 6.2 and rawhide, but not with 6.1.

Comment 2 Pekka Savola 2000-08-31 20:47:27 UTC
*** Bug 17121 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.