From owner-cvs-sbin Sun Mar 2 12:06:30 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id MAA28775 for cvs-sbin-outgoing; Sun, 2 Mar 1997 12:06:30 -0800 (PST) Received: from rover.village.org (rover.village.org [204.144.255.49]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id MAA28685; Sun, 2 Mar 1997 12:05:04 -0800 (PST) Received: from rover.village.org [127.0.0.1] by rover.village.org with esmtp (Exim 0.56 #1) id E0w1HVD-0005hs-00; Sun, 2 Mar 1997 13:04:59 -0700 To: Bill Fenner Subject: Re: cvs commit: src/sbin/ping ping.c ping.8 Cc: CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-sbin@freefall.freebsd.org In-reply-to: Your message of "Sun, 02 Mar 1997 12:00:21 PST." <97Mar2.120022pst.177476@crevenia.parc.xerox.com> References: <97Mar2.120022pst.177476@crevenia.parc.xerox.com> Date: Sun, 02 Mar 1997 13:04:59 -0700 From: Warner Losh Message-Id: Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk In message <97Mar2.120022pst.177476@crevenia.parc.xerox.com> Bill Fenner writes: : >only once a second : : Unless you're using "ping -f", which the superuser may do, in which case : you're doing it as fast as the network allows you to. Ummmm, iff -f gives you ICMP packets that aren't ECHOREPLYs *AND* you are running -v. Otherwise no additional system calls happen due to the short-circuit nature of C. However, like I said before, I've changed it because it took less time than arguing :-). Warner