diff options
author | ache <ache@FreeBSD.org> | 1997-03-08 09:55:42 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-03-08 09:55:42 +0000 |
commit | cd4948fc0c6ab4d141ab0f15d6771a9b5e4b4ea7 (patch) | |
tree | 812dd0235436c2d91c85c6d738294b6cf36c8d5f /usr.sbin/ppp/timer.c | |
parent | 7b627696630ebf6b0c4e7c153e18193c109e1813 (diff) | |
download | FreeBSD-src-cd4948fc0c6ab4d141ab0f15d6771a9b5e4b4ea7.zip FreeBSD-src-cd4948fc0c6ab4d141ab0f15d6771a9b5e4b4ea7.tar.gz |
Don't pend SIGALRM (Timer Service) due to
1) When carrier dropped, old variant often forget to detect it cause
unkillable loop forever (because SIGTERM pended too, but it will be
separate commit)
2) Time intervals accuracy reasons
Should go into 2.2
Diffstat (limited to 'usr.sbin/ppp/timer.c')
-rw-r--r-- | usr.sbin/ppp/timer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ppp/timer.c b/usr.sbin/ppp/timer.c index 68214cf..236bdbe 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.9 1997/02/22 16:10:59 peter Exp $ + * $Id: timer.c,v 1.10 1997/02/25 14:05:17 brian Exp $ * * TODO: */ @@ -271,7 +271,7 @@ void usleep( u_int usec) void InitTimerService( void ) { struct itimerval itimer; - pending_signal(SIGALRM, (void (*)(int))TimerService); + signal(SIGALRM, (void (*)(int))TimerService); itimer.it_interval.tv_sec = itimer.it_value.tv_sec = 0; itimer.it_interval.tv_usec = itimer.it_value.tv_usec = TICKUNIT; setitimer(ITIMER_REAL, &itimer, NULL); @@ -287,6 +287,6 @@ void TermTimerService( void ) { * Notes: after disabling timer here, we will get one * SIGALRM will be got. */ - pending_signal(SIGALRM, SIG_IGN); + signal(SIGALRM, SIG_IGN); } #endif |