This is the mail archive of the
cygwin
mailing list for the Cygwin project.
ping returns success on failure
- From: Richard Foulk <richard at skydive1 dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 04 May 2007 09:10:38 -1000
- Subject: ping returns success on failure
- References: <1178291537.27571.ezmlm@cygwin.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/