diff options
author | brian <brian@FreeBSD.org> | 1997-05-09 20:48:21 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-05-09 20:48:21 +0000 |
commit | 6bf24e13fb3b7c766188f0a766327f608787b332 (patch) | |
tree | 5d3d554fe731218983c703d7769436354704d550 /usr.sbin/ppp/timer.c | |
parent | fa7109d49f8d07b7fb130abf2e2e58d2365054af (diff) | |
download | FreeBSD-src-6bf24e13fb3b7c766188f0a766327f608787b332.zip FreeBSD-src-6bf24e13fb3b7c766188f0a766327f608787b332.tar.gz |
Set setitimer() arg correctly.
Diffstat (limited to 'usr.sbin/ppp/timer.c')
-rw-r--r-- | usr.sbin/ppp/timer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ppp/timer.c b/usr.sbin/ppp/timer.c index 8460992..116de6a 100644 --- a/usr.sbin/ppp/timer.c +++ b/usr.sbin/ppp/timer.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: timer.c,v 1.13 1997/03/09 20:09:17 ache Exp $ + * $Id: timer.c,v 1.14 1997/03/13 12:45:26 brian Exp $ * * TODO: */ @@ -280,6 +280,7 @@ void InitTimerService( void ) { void TermTimerService( void ) { struct itimerval itimer; + itimer.it_interval.tv_usec = itimer.it_interval.tv_sec = 0; itimer.it_value.tv_usec = itimer.it_value.tv_sec = 0; setitimer(ITIMER_REAL, &itimer, NULL); pending_signal(SIGALRM, SIG_IGN); |