1
0
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:
Nicolas Viennot 2013-07-11 03:17:14 -04:00
parent 5a6abb6d24
commit 2ed5d4d973
2 changed files with 7 additions and 3 deletions

View File

@ -152,9 +152,11 @@ static void tmate_sync_window_panes(struct window *w,
}
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);
}
}
active_pane_id = unpack_int(w_uk);
wp = window_pane_find_by_id(active_pane_id);

View File

@ -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.
*/
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
tmate_session_log_fd = open("session-log.log",