From owner-cvs-all Mon Mar 29 16:45:16 1999 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 5535B14ED0; Mon, 29 Mar 1999 16:45:15 -0800 (PST) (envelope-from brian@FreeBSD.org) Received: (from brian@localhost) by freefall.freebsd.org (8.9.2/8.9.2) id QAA76386; Mon, 29 Mar 1999 16:44:58 -0800 (PST) (envelope-from brian@FreeBSD.org) Message-Id: <199903300044.QAA76386@freefall.freebsd.org> From: Brian Somers Date: Mon, 29 Mar 1999 16:44:58 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/ppp main.c sig.c sig.h Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk brian 1999/03/29 16:44:58 PST Modified files: usr.sbin/ppp main.c sig.c sig.h Log: Maintain a `necessary' marker to indicate that we *probably* need to process a signal (usually a SIGALRM). Check to see if we need to process a signal both before *and* after calling select() as older (pre-2.0) versions of ppp used to. This handles the possibility that ppp may block at some point (maybe due to an open() of a misconfigured device). Previously, we'd potentially lock up in select(). The `necessary' marker reduces the increased signal checking overhead so that at full speed with no compression transferring an 83Mb file via a ``!ppp -direct'' device, we get a 1% throughput gain. Revision Changes Path 1.152 +12 -1 src/usr.sbin/ppp/main.c 1.14 +23 -11 src/usr.sbin/ppp/sig.c 1.13 +2 -2 src/usr.sbin/ppp/sig.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message