summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/timer.h
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1997-12-28 21:55:05 +0000
committerbrian <brian@FreeBSD.org>1997-12-28 21:55:05 +0000
commit839c2bd106e11bed3b651a15dfdca1c31ddaf17b (patch)
tree616041044ae18dc6a6d6782a74c63533871b269c /usr.sbin/ppp/timer.h
parentd1a7d9a5ed09ff43caf43a21c12857c28c0b3792 (diff)
downloadFreeBSD-src-839c2bd106e11bed3b651a15dfdca1c31ddaf17b.zip
FreeBSD-src-839c2bd106e11bed3b651a15dfdca1c31ddaf17b.tar.gz
Don't expect select() to adjust the passed time when it's
interrupted with a SIGALRM. In fact, select() sets the passed time to zero, making the previous implementation terminate always after 1/10th of a second ! Also, deal with someone changing the clock while we're sleeping (and restart the whole sleep). Dangers pointed out by: Theo de Raadt <deraadt@cvs.openbsd.org>
Diffstat (limited to 'usr.sbin/ppp/timer.h')
-rw-r--r--usr.sbin/ppp/timer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/timer.h b/usr.sbin/ppp/timer.h
index 51d614d..ca9bba2 100644
--- a/usr.sbin/ppp/timer.h
+++ b/usr.sbin/ppp/timer.h
@@ -15,7 +15,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: timer.h,v 1.2 1997/10/26 12:42:13 brian Exp $
+ * $Id: timer.h,v 1.3 1997/11/22 03:37:52 brian Exp $
*
* TODO:
*/
@@ -46,6 +46,6 @@ extern void TermTimerService(void);
extern void ShowTimers(void);
#ifdef SIGALRM
-extern u_int nointr_sleep(u_int);
+extern void nointr_sleep(u_int);
extern void nointr_usleep(u_int);
#endif
OpenPOWER on IntegriCloud