diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2006-07-18 08:32:06 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2006-07-18 08:32:06 +0000 |
commit | 1ca6a9933ce997db13d276b3efed1005ddef6be1 (patch) | |
tree | e63bb2ea64c1e8cc533f1f964de500c57be9b436 | |
parent | 4b72b1799415ea5a1507f32193431d9ca4a59f49 (diff) |
better explanation of return values;
originally from david christiansen, but (re)worded by otto;
ok otto
-rw-r--r-- | sbin/ping/ping.8 | 6 | ||||
-rw-r--r-- | sbin/ping6/ping6.8 | 10 |
2 files changed, 9 insertions, 7 deletions
diff --git a/sbin/ping/ping.8 b/sbin/ping/ping.8 index e6969218e3e..f6b3ccd4290 100644 --- a/sbin/ping/ping.8 +++ b/sbin/ping/ping.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: ping.8,v 1.33 2006/07/11 21:23:08 jmc Exp $ +.\" $OpenBSD: ping.8,v 1.34 2006/07/18 08:32:05 jmc Exp $ .\" $NetBSD: ping.8,v 1.10 1995/12/31 04:55:35 ghudson Exp $ .\" .\" Copyright (c) 1985, 1991, 1993 @@ -222,7 +222,9 @@ Because of the load it can impose on the network, it is unwise to use .Nm during normal operations or from automated scripts. .Pp -.Ex -std ping +.Nm +exits 0 if at least one reply is received, +and \*(Gt0 if no reply is received or an error occurred. .Sh ICMP PACKET DETAILS An IP header without options is 20 bytes. An ICMP diff --git a/sbin/ping6/ping6.8 b/sbin/ping6/ping6.8 index ffc76c900e7..cf275f83061 100644 --- a/sbin/ping6/ping6.8 +++ b/sbin/ping6/ping6.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: ping6.8,v 1.28 2003/10/25 07:40:37 jmc Exp $ +.\" $OpenBSD: ping6.8,v 1.29 2006/07/18 08:32:05 jmc Exp $ .\" $KAME: ping6.8,v 1.57 2002/05/26 13:18:25 itojun Exp $ .\" .\" Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -315,6 +315,10 @@ management. Because of the load it can impose on the network, it is unwise to use .Nm during normal operations or from automated scripts. +.Pp +.Nm +exits 0 if at least one reply is received, +and \*(Gt0 if no reply is received or an error occurred. .\" .Sh ICMP PACKET DETAILS .\" An IP header without options is 20 bytes. .\" An @@ -387,10 +391,6 @@ using the .Fl p option of .Nm ping6 . -.Sh RETURN VALUES -.Nm -returns 0 on success (the host is alive), -and non-zero if the arguments are incorrect or the host is not responding. .Sh EXAMPLES Normally, .Nm |