[6401] in Athena Bugs

home help back first fref pref prev next nref lref last post

vax 7.1H: ping

daemon@ATHENA.MIT.EDU (Jonathan I. Kamens)
Tue Nov 13 22:22:48 1990

Date: Tue, 13 Nov 90 22:22:34 -0500
From: "Jonathan I. Kamens" <jik@pit-manager.MIT.EDU>
To: brlewis@ATHENA.MIT.EDU
Cc: bugs@ATHENA.MIT.EDU
In-Reply-To: bugs[5712]

   From: brlewis@ATHENA.MIT.EDU
   Date: Mon, 13 Aug 90 13:51:12 EDT

   What's wrong:
	   Ping returns zero status even on 100% packet loss:

   What should have happened:
	   It should have returned non-zero status.

Not convinced.  Non-zero exit status is used when a program fails in
some way.  Ping is not "failing" when packets are lost; it is the
network connection that is failing.  The man page for ping does not
claim to do return non-zero status if packets are lost, and I don't
think it should.

Note that if you specify an unknown host or an unknown command-line
option or something like that, then it *will* exit with a non-zero
exit status.

  jik

home help back first fref pref prev next nref lref last post