From owner-cvs-all Wed Jun 24 12:34:27 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA12368 for cvs-all-outgoing; Wed, 24 Jun 1998 12:34:27 -0700 (PDT) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA12295; Wed, 24 Jun 1998 12:34:01 -0700 (PDT) (envelope-from brian@FreeBSD.org) From: Brian Somers Received: (from brian@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id MAA22102; Wed, 24 Jun 1998 12:33:39 -0700 (PDT) Date: Wed, 24 Jun 1998 12:33:39 -0700 (PDT) Message-Id: <199806241933.MAA22102@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-usrsbin@FreeBSD.ORG Subject: cvs commit: src/usr.sbin/ppp Makefile bundle.c chat.c datalink.c descriptor.h main.c modem.c mp.c prompt.c server.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk brian 1998/06/24 12:33:38 PDT Modified files: usr.sbin/ppp Makefile bundle.c chat.c datalink.c descriptor.h main.c modem.c mp.c prompt.c server.c Log: o If we come out of select() with only write descriptors that end up writing zero bytes, sleep for 1/10 of a second so that we don't end up using up too much cpu. This should only ever happen on systems that wrongly report a descriptor as writable despite the tty buffer being full. Discussed with: Jeff Evarts o Do an initial run-time check to see if select() alters the passed timeval. This knowledge isn't yet used, but will be soon. Revision Changes Path 1.42 +3 -3 src/usr.sbin/ppp/Makefile 1.23 +6 -3 src/usr.sbin/ppp/bundle.c 1.49 +6 -2 src/usr.sbin/ppp/chat.c 1.12 +7 -4 src/usr.sbin/ppp/datalink.c 1.4 +2 -2 src/usr.sbin/ppp/descriptor.h 1.136 +28 -6 src/usr.sbin/ppp/main.c 1.93 +10 -5 src/usr.sbin/ppp/modem.c 1.11 +3 -2 src/usr.sbin/ppp/mp.c 1.8 +3 -2 src/usr.sbin/ppp/prompt.c 1.21 +3 -2 src/usr.sbin/ppp/server.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message