version 1.339, 2020/05/16 16:07:55 |
version 1.340, 2020/05/16 16:16:07 |
|
|
c->queue = cmdq_new(); |
c->queue = cmdq_new(); |
|
|
c->tty.fd = -1; |
c->tty.fd = -1; |
|
|
c->tty.sx = 80; |
c->tty.sx = 80; |
c->tty.sy = 24; |
c->tty.sy = 24; |
|
|
|
|
void |
void |
server_client_lost(struct client *c) |
server_client_lost(struct client *c) |
{ |
{ |
struct client_file *cf; |
struct client_file *cf, *cf1; |
|
|
c->flags |= CLIENT_DEAD; |
c->flags |= CLIENT_DEAD; |
|
|
|
|
status_prompt_clear(c); |
status_prompt_clear(c); |
status_message_clear(c); |
status_message_clear(c); |
|
|
RB_FOREACH(cf, client_files, &c->files) { |
RB_FOREACH_SAFE(cf, client_files, &c->files, cf1) { |
cf->error = EINTR; |
cf->error = EINTR; |
file_fire_done(cf); |
file_fire_done(cf); |
} |
} |
|
|
|
|
} |
} |
|
|
/*Get client flags. This is only flags useful to show to users. */ |
/* Get client flags. This is only flags useful to show to users. */ |
const char * |
const char * |
server_client_get_flags(struct client *c) |
server_client_get_flags(struct client *c) |
{ |
{ |