X-Spam-Check-By: sourceware.org From: Richard Foulk Message-Id: <200705041910.l44JAcW1004759@sd.skydive1.com> Date: Fri, 04 May 2007 09:10:38 -1000 To: cygwin AT cygwin DOT com Subject: ping returns success on failure References: <1178291537 DOT 27571 DOT ezmlm AT cygwin DOT com> In-Reply-To: <1178291537.27571.ezmlm@cygwin.com> User-Agent: nail 11.20 1/13/05 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Ping returns zero (0) after a successful response from a remote host. It returns one (1) if it's called with a unknown domain name -- a failure. Unfortunately, it returns zero if the remote host exists but doesn't respond. This seems like incorrect behavior to me and doesn't agree with ping on Linux. This assumes ping is being directed not to loop forever (ping host 1 1 1). Richard -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/