diff options
author | brian <brian@FreeBSD.org> | 1998-12-14 19:24:30 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1998-12-14 19:24:30 +0000 |
commit | 3eeed8c02fce6965098f212060243027bd8118d0 (patch) | |
tree | ad0cbd9ddeec8d1f23b1038b7d9fd752afa6ac61 /usr.sbin/ppp/bundle.c | |
parent | cf4547cfadfb4c1f51df3ddc23d1a2b1f61063dd (diff) | |
download | FreeBSD-src-3eeed8c02fce6965098f212060243027bd8118d0.zip FreeBSD-src-3eeed8c02fce6965098f212060243027bd8118d0.tar.gz |
Rather than interrupting 10 times per second then checking
to see if there's anything to do, schedule the next alarm
based on the next required timeout.
This decreases the load when there are lots of relatively
idle ppp processes.
While I'm in there, handle the possibility that a timeout
makes the timer element go out of scope by grabbing the
enext pointer before executing the timer function.
Diffstat (limited to 'usr.sbin/ppp/bundle.c')
-rw-r--r-- | usr.sbin/ppp/bundle.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/bundle.c b/usr.sbin/ppp/bundle.c index c123f7a..78acce4 100644 --- a/usr.sbin/ppp/bundle.c +++ b/usr.sbin/ppp/bundle.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: bundle.c,v 1.40 1998/10/29 23:47:10 brian Exp $ + * $Id: bundle.c,v 1.41 1998/12/10 18:36:30 brian Exp $ */ #include <sys/param.h> @@ -1659,7 +1659,7 @@ bundle_setsid(struct bundle *bundle, int holdsession) log_Printf(LogPHASE, "%d -> %d: %s session control\n", (int)orig, (int)getpid(), holdsession ? "Passed" : "Dropped"); - timer_InitService(); + timer_InitService(0); /* Start the Timer Service */ break; default: close(fds[1]); |