summaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/timer.h
diff options
context:
space:
mode:
authorbrian <brian@cvs.openbsd.org>1997-12-28 21:54:26 +0000
committerbrian <brian@cvs.openbsd.org>1997-12-28 21:54:26 +0000
commit9dfb52ea4b97ea1c25b3631a1675060f35885357 (patch)
tree0c42b5e21b8ffd090ea68437c4eb14c3392b784d /usr.sbin/ppp/timer.h
parentaf7574bc79365a4f767b1034e070349d543c364b (diff)
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 cf11adbe104..c90abae8141 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.1 1997/11/23 20:27:36 brian Exp $
+ * $Id: timer.h,v 1.2 1997/12/28 21:54:25 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