version 1.19, 2009/08/11 19:32:25 |
version 1.20, 2009/08/11 22:34:17 |
|
|
} |
} |
} |
} |
ARRAY_ADD(&clients, c); |
ARRAY_ADD(&clients, c); |
|
log_debug("new client %d", fd); |
} |
} |
|
|
/* Find client index. */ |
/* Find client index. */ |
|
|
time_t now, last; |
time_t now, last; |
|
|
siginit(); |
siginit(); |
|
log_debug("server socket is %d", srv_fd); |
|
|
last = time(NULL); |
last = time(NULL); |
|
|
|
|
if (ARRAY_ITEM(&clients, i) == c) |
if (ARRAY_ITEM(&clients, i) == c) |
ARRAY_SET(&clients, i, NULL); |
ARRAY_SET(&clients, i, NULL); |
} |
} |
|
log_debug("lost client %d", c->ibuf.fd); |
|
|
tty_free(&c->tty); |
tty_free(&c->tty); |
|
|