From owner-freebsd-hackers Mon Jun 2 15:23:00 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id PAA16600 for hackers-outgoing; Mon, 2 Jun 1997 15:23:00 -0700 (PDT) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id PAA16595 for ; Mon, 2 Jun 1997 15:22:53 -0700 (PDT) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id AAA04599; Tue, 3 Jun 1997 00:22:51 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.8.5/8.8.5) id AAA13015; Tue, 3 Jun 1997 00:11:48 +0200 (MET DST) Message-ID: <19970603001148.DM01471@uriah.heep.sax.de> Date: Tue, 3 Jun 1997 00:11:48 +0200 From: j@uriah.heep.sax.de (J Wunsch) To: hackers@FreeBSD.ORG Cc: bmcgover@cisco.com (Brian McGovern) Subject: Re: Need help with pppd... References: <199706022119.RAA00332@bmcgover-pc.cisco.com> X-Mailer: Mutt 0.60_p2-3,5,8-9 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199706022119.RAA00332@bmcgover-pc.cisco.com>; from Brian McGovern on Jun 2, 1997 17:19:11 -0400 Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As Brian McGovern wrote: > I guess the question I really have is this... With the other serial drivers, > what keeps pppd from spinning completely out of control (if its not selecting/ > blocking on the async port)? It _is_ selecting on the port. /* * wait_input - wait until there is data available on fd, * for the length of time specified by *timo (indefinite * if timo is NULL). */ wait_input(timo) struct timeval *timo; { fd_set ready; int n; FD_ZERO(&ready); FD_SET(fd, &ready); n = select(fd+1, &ready, NULL, &ready, timo); if (n < 0 && errno != EINTR) { syslog(LOG_ERR, "select: %m"); die(1); } } -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)