From owner-cvs-all Sun Nov 26 19:16:30 2000 Delivered-To: cvs-all@freebsd.org Received: from green.dyndns.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 2B3EA37B479; Sun, 26 Nov 2000 19:16:22 -0800 (PST) Received: from localhost (iuz772@localhost [127.0.0.1]) by green.dyndns.org (8.11.0/8.11.0) with ESMTP id eAR3GE578531; Sun, 26 Nov 2000 22:16:16 -0500 (EST) (envelope-from green@FreeBSD.org) Message-Id: <200011270316.eAR3GE578531@green.dyndns.org> X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: Brian Somers Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.sbin/pppctl Makefile pppctl.c In-Reply-To: Message from Brian Somers of "Sun, 26 Nov 2000 18:31:26 PST." <200011270231.SAA15622@freefall.freebsd.org> From: "Brian F. Feldman" Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 26 Nov 2000 22:16:13 -0500 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Brian Somers wrote: > brian 2000/11/26 18:31:26 PST > > Modified files: > usr.sbin/pppctl Makefile pppctl.c > Log: > Change interactive mode so that a monitor thread keeps an eye on the > ppp descriptor and signals the terminal thread when there's something > to read on that descriptor. > > This means that the main loop doesn't have to alarm() itself into > dropping out of el_gets() frequently to check the descriptor. This > dropping out was disturbing syscons (via ioctl()s from libedit) enough > to reset the screensaver timeout every .5 of a second. Unless I'm mistaken, this gets the reward for being the first program in the base system to actually use pthreads :) Go Brian! -- Brian Fundakowski Feldman \ FreeBSD: The Power to Serve! / green@FreeBSD.org `------------------------------' To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message