mirror of
https://github.com/tmate-io/tmate-ssh-server.git
synced 2020-11-18 19:53:51 -08:00
[BUG FIX] The hanging issue should be fixed
This commit is contained in:
parent
5a6abb6d24
commit
2ed5d4d973
@ -152,8 +152,10 @@ static void tmate_sync_window_panes(struct window *w,
|
|||||||
}
|
}
|
||||||
|
|
||||||
TAILQ_FOREACH_SAFE(wp, &w->panes, entry, wp_tmp) {
|
TAILQ_FOREACH_SAFE(wp, &w->panes, entry, wp_tmp) {
|
||||||
if (wp->flags & PANE_KILL)
|
if (wp->flags & PANE_KILL) {
|
||||||
|
layout_close_pane(wp);
|
||||||
window_remove_pane(w, wp);
|
window_remove_pane(w, wp);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
active_pane_id = unpack_int(w_uk);
|
active_pane_id = unpack_int(w_uk);
|
||||||
|
@ -336,8 +336,10 @@ static void tmate_spawn_slave_server(struct tmate_ssh_client *client)
|
|||||||
* We won't have access to it once in the jail.
|
* We won't have access to it once in the jail.
|
||||||
*/
|
*/
|
||||||
setup_ncurse(STDOUT_FILENO, "screen-256color");
|
setup_ncurse(STDOUT_FILENO, "screen-256color");
|
||||||
close_fds_except((int[]){tmux_socket_fd, ssh_get_fd(client->session),
|
|
||||||
fileno(log_file)}, 7);
|
close_fds_except((int[]){tmux_socket_fd,
|
||||||
|
ssh_get_fd(client->session),
|
||||||
|
fileno(log_file)}, 3);
|
||||||
|
|
||||||
#ifdef TMATE_RECORD_REPLAY
|
#ifdef TMATE_RECORD_REPLAY
|
||||||
tmate_session_log_fd = open("session-log.log",
|
tmate_session_log_fd = open("session-log.log",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user