Unify the way sessions are used by callbacks - store the address and use

the reference count, then check it is still on the global sessions list
in the callback.
This commit is contained in:
Nicholas Marriott
2010-12-20 00:03:55 +00:00
parent c65d4220f0
commit a51dcdc430
5 changed files with 43 additions and 17 deletions

1
tmux.h
View File

@ -1968,6 +1968,7 @@ void clear_signals(int);
extern struct sessions sessions;
extern struct sessions dead_sessions;
extern struct session_groups session_groups;
int session_alive(struct session *);
struct session *session_find(const char *);
struct session *session_create(const char *, const char *, const char *,
struct environ *, struct termios *, int, u_int, u_int,