version 1.30.2.1, 2002/03/07 17:37:47 |
version 1.30.2.2, 2002/06/22 07:23:18 |
|
|
con *c; |
con *c; |
|
|
gettimeofday(&now, NULL); |
gettimeofday(&now, NULL); |
c = tq.tqh_first; |
c = TAILQ_FIRST(&tq); |
|
|
if (c && (c->c_tv.tv_sec > now.tv_sec || |
if (c && (c->c_tv.tv_sec > now.tv_sec || |
(c->c_tv.tv_sec == now.tv_sec && c->c_tv.tv_usec > now.tv_usec))) { |
(c->c_tv.tv_sec == now.tv_sec && c->c_tv.tv_usec > now.tv_usec))) { |
|
|
xfree(r); |
xfree(r); |
xfree(e); |
xfree(e); |
|
|
c = tq.tqh_first; |
c = TAILQ_FIRST(&tq); |
while (c && (c->c_tv.tv_sec < now.tv_sec || |
while (c && (c->c_tv.tv_sec < now.tv_sec || |
(c->c_tv.tv_sec == now.tv_sec && c->c_tv.tv_usec < now.tv_usec))) { |
(c->c_tv.tv_sec == now.tv_sec && c->c_tv.tv_usec < now.tv_usec))) { |
int s = c->c_fd; |
int s = c->c_fd; |
|
|
c = c->c_link.tqe_next; |
c = TAILQ_NEXT(c, c_link); |
conrecycle(s); |
conrecycle(s); |
} |
} |
} |
} |