aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authornicm <nicm>2015-06-05 18:01:12 +0000
committernicm <nicm>2015-06-05 18:01:12 +0000
commit8c93b768e4864be330c3d6a7962892135224f0f4 (patch)
tree783a393e81cd604e69a4b4aaabbc6acafb6410d6 /tmux.h
parentb0782df8a64f744b7c067e6f918ce5217ea09e57 (diff)
downloadrtmux-8c93b768e4864be330c3d6a7962892135224f0f4.tar.gz
rtmux-8c93b768e4864be330c3d6a7962892135224f0f4.tar.bz2
rtmux-8c93b768e4864be330c3d6a7962892135224f0f4.zip
Instead of putting dead clients on a list and checking it every loop,
use event_once to queue a callback to deal with them. Also dead clients with references would never actually be freed because the wrap-up functions (the callback for stdin, or status_prompt_clear) would never be called. So call them in server_client_lost.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tmux.h b/tmux.h
index 8406955b..fa36fe6f 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1871,6 +1871,7 @@ int server_client_check_nested(struct client *);
void server_client_handle_key(struct client *, int);
void server_client_create(int);
int server_client_open(struct client *, char **);
+void server_client_deref(struct client *);
void server_client_lost(struct client *);
void server_client_callback(int, short, void *);
void server_client_status_timer(void);