ping returns success on failure

Richard Foulk
Fri May 4 19:39:00 GMT 2007

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


Unsubscribe info:
Problem reports:

More information about the Cygwin mailing list