summaryrefslogtreecommitdiff
path: root/server/timer.c
diff options
context:
space:
mode:
authorGravatar Kenneth G Raeburn <raeburn@mit.edu>1988-10-19 18:49:48 +0000
committerGravatar Kenneth G Raeburn <raeburn@mit.edu>1988-10-19 18:49:48 +0000
commit12d2840fb48e773b4715cfab1d6778c42cffcb5a (patch)
tree33a3301db0dd5671b45829150e23b1410720d67d /server/timer.c
parentcc3800ae405dc2752e240b171fedeb1e8c961454 (diff)
Moved nexttimo to be before reclamation.
Diffstat (limited to 'server/timer.c')
-rw-r--r--server/timer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/timer.c b/server/timer.c
index b343c46..338f79b 100644
--- a/server/timer.c
+++ b/server/timer.c
@@ -235,6 +235,10 @@ timer_process()
right_now = NOW;
t=ALARM_NEXT(timers);
+ /* note that in the case that there are no timers, the ALARM_TIME
+ is set to 0L, which is what the main loop expects as the
+ nexttimo when we have no timout work to do */
+ nexttimo = ALARM_TIME(t);
if (t != timers && right_now >= ALARM_TIME(t)) {
/*
* This one goes off NOW..
@@ -250,10 +254,6 @@ timer_process()
ALARM_ARG(t) = (caddr_t) NULL;
xfree(t);
}
- /* note that in the case that there are no timers, the ALARM_TIME
- is set to 0L, which is what the main loop expects as the
- nexttimo when we have no timout work to do */
- nexttimo = ALARM_TIME(t);
if (valid) {
(queue)(queue_arg);