mirror of
https://github.com/tmate-io/tmate.git
synced 2025-01-05 13:38:53 +01:00
parent
3be116bb6e
commit
8e246f6f98
@ -153,6 +153,8 @@ session_create(const char *name, const char *cmd, const char *cwd,
|
|||||||
return (s);
|
return (s);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extern void signal_waiting_clients(const char *name);
|
||||||
|
|
||||||
/* Destroy a session. */
|
/* Destroy a session. */
|
||||||
void
|
void
|
||||||
session_destroy(struct session *s)
|
session_destroy(struct session *s)
|
||||||
@ -163,6 +165,8 @@ session_destroy(struct session *s)
|
|||||||
RB_REMOVE(sessions, &sessions, s);
|
RB_REMOVE(sessions, &sessions, s);
|
||||||
notify_session_closed(s);
|
notify_session_closed(s);
|
||||||
|
|
||||||
|
signal_waiting_clients("session-exit");
|
||||||
|
|
||||||
free(s->tio);
|
free(s->tio);
|
||||||
|
|
||||||
session_group_remove(s);
|
session_group_remove(s);
|
||||||
|
Loading…
Reference in New Issue
Block a user