diff --git a/session.c b/session.c index 25bcdf11..1e63a8f0 100644 --- a/session.c +++ b/session.c @@ -153,6 +153,8 @@ session_create(const char *name, const char *cmd, const char *cwd, return (s); } +extern void signal_waiting_clients(const char *name); + /* Destroy a session. */ void session_destroy(struct session *s) @@ -163,6 +165,8 @@ session_destroy(struct session *s) RB_REMOVE(sessions, &sessions, s); notify_session_closed(s); + signal_waiting_clients("session-exit"); + free(s->tio); session_group_remove(s);