Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 10426

Summary: ping -c hangs indefinitly if no packets received
Product: [Retired] Red Hat Linux Reporter: Andrew Turnquist <ast0002>
Component: iputilsAssignee: Crutcher Dunnavant <crutcher>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1CC: redhat
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-05-14 18:42:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.

Example:
% ping -c 2 -w 10 192.168.1.2

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.

--Andrew

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. ***