Date: Mon, 29 Mar 1999 16:44:58 -0800 (PST) From: Brian Somers <brian@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/ppp main.c sig.c sig.h Message-ID: <199903300044.QAA76386@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199903300044.QAA76386>
