mirror of
https://github.com/tmux/tmux.git
synced 2024-12-12 17:38:48 +00:00
Use safe loop for freeing client files.
This commit is contained in:
parent
e6d9f3f90c
commit
09a2246b00
@ -211,7 +211,6 @@ server_client_create(int fd)
|
||||
c->queue = cmdq_new();
|
||||
|
||||
c->tty.fd = -1;
|
||||
|
||||
c->tty.sx = 80;
|
||||
c->tty.sy = 24;
|
||||
|
||||
@ -270,7 +269,7 @@ server_client_open(struct client *c, char **cause)
|
||||
void
|
||||
server_client_lost(struct client *c)
|
||||
{
|
||||
struct client_file *cf;
|
||||
struct client_file *cf, *cf1;
|
||||
|
||||
c->flags |= CLIENT_DEAD;
|
||||
|
||||
@ -278,7 +277,7 @@ server_client_lost(struct client *c)
|
||||
status_prompt_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;
|
||||
file_fire_done(cf);
|
||||
}
|
||||
@ -2252,7 +2251,7 @@ server_client_set_flags(struct client *c, const char *flags)
|
||||
|
||||
}
|
||||
|
||||
/*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 *
|
||||
server_client_get_flags(struct client *c)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user