version 1.152, 2021/02/11 08:28:45 |
version 1.153, 2021/02/11 09:39:29 |
|
|
static void |
static void |
client_exit(void) |
client_exit(void) |
{ |
{ |
struct client_file *cf; |
if (!file_write_left(&client_files)) |
size_t left; |
|
int waiting = 0; |
|
|
|
RB_FOREACH (cf, client_files, &client_files) { |
|
if (cf->event == NULL) |
|
continue; |
|
left = EVBUFFER_LENGTH(cf->event->output); |
|
if (left != 0) { |
|
waiting++; |
|
log_debug("file %u %zu bytes left", cf->stream, left); |
|
} |
|
} |
|
if (waiting == 0) |
|
proc_exit(client_proc); |
proc_exit(client_proc); |
} |
} |
|
|