version 1.161, 2016/10/15 00:01:01 |
version 1.162, 2016/10/16 17:55:14 |
|
|
server_loop(void) |
server_loop(void) |
{ |
{ |
struct client *c; |
struct client *c; |
|
u_int items; |
|
|
server_client_loop(); |
|
notify_drain(); |
notify_drain(); |
|
|
|
do { |
|
items = cmdq_next(NULL); |
|
TAILQ_FOREACH(c, &clients, entry) |
|
items += cmdq_next(c); |
|
} while (items != 0); |
|
|
|
server_client_loop(); |
|
|
if (!options_get_number(global_options, "exit-unattached")) { |
if (!options_get_number(global_options, "exit-unattached")) { |
if (!RB_EMPTY(&sessions)) |
if (!RB_EMPTY(&sessions)) |