version 1.41, 2010/08/11 07:36:23 |
version 1.42, 2010/09/26 20:43:30 |
|
|
} |
} |
|
|
void |
void |
|
server_check_unattached (void) |
|
{ |
|
struct session *s; |
|
u_int i; |
|
|
|
/* |
|
* If any sessions are no longer attached and have destroy-unattached |
|
* set, collect them. |
|
*/ |
|
for (i = 0; i < ARRAY_LENGTH(&sessions); i++) { |
|
s = ARRAY_ITEM(&sessions, i); |
|
if (s == NULL || !(s->flags & SESSION_UNATTACHED)) |
|
continue; |
|
if (options_get_number (&s->options, "destroy-unattached")) |
|
session_destroy(s); |
|
} |
|
} |
|
|
|
void |
server_set_identify(struct client *c) |
server_set_identify(struct client *c) |
{ |
{ |
struct timeval tv; |
struct timeval tv; |