summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/timer.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1998-06-20 01:36:38 +0000
committerbrian <brian@FreeBSD.org>1998-06-20 01:36:38 +0000
commitc2aa2f38cd437cc848b557b81fe3eb9d4d407b9b (patch)
tree47845537faee350c8584544d5e7de0f5a6e1537b /usr.sbin/ppp/timer.c
parent6e7ded224d09f6b63debbee1e5db7b1ae4a0a100 (diff)
downloadFreeBSD-src-c2aa2f38cd437cc848b557b81fe3eb9d4d407b9b.zip
FreeBSD-src-c2aa2f38cd437cc848b557b81fe3eb9d4d407b9b.tar.gz
Re-initialise our timer service after fork()ing
to lose our terminal session. Is this a bug in setitimer() ? - it must be called again in the child !
Diffstat (limited to 'usr.sbin/ppp/timer.c')
-rw-r--r--usr.sbin/ppp/timer.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.sbin/ppp/timer.c b/usr.sbin/ppp/timer.c
index be8a8b2..f7b4d01 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.28 1998/05/21 21:48:46 brian Exp $
+ * $Id: timer.c,v 1.29 1998/06/15 19:06:56 brian Exp $
*
* TODO:
*/
@@ -38,7 +38,6 @@
static struct pppTimer *TimerList = NULL;
static void StopTimerNoBlock(struct pppTimer *);
-static void InitTimerService(void);
static const char *
tState2Nam(u_int state)
@@ -99,7 +98,7 @@ timer_Start(struct pppTimer * tp)
if (pt) {
pt->next = tp;
} else {
- InitTimerService();
+ timer_InitService();
TimerList = tp;
}
if (t)
@@ -225,8 +224,8 @@ timer_Show(int LogLevel, struct prompt *prompt)
log_Printf(LogLevel, "---- End of Timer Service List ---\n");
}
-static void
-InitTimerService()
+void
+timer_InitService()
{
struct itimerval itimer;
OpenPOWER on IntegriCloud