1
0
mirror of https://github.com/tmate-io/tmate-ssh-server.git synced 2020-11-18 19:53:51 -08:00

Log IP address when spawning server/client

This commit is contained in:
Nicolas Viennot 2013-06-13 19:38:34 -04:00
parent 1443fc3e5b
commit 8e610ba024
2 changed files with 4 additions and 3 deletions

View File

@ -222,7 +222,7 @@ static void tmate_spawn_slave_server(struct tmate_ssh_client *client)
set_session_token(client, token);
free(token);
tmate_debug("Spawning tmux slave server");
tmate_debug("Spawning slave server for %s", client->ip_address);
tmux_socket_fd = server_create_socket();
if (tmux_socket_fd < 0)
@ -263,7 +263,7 @@ static void tmate_spawn_slave_client(struct tmate_ssh_client *client)
set_session_token(client, token);
tmate_debug("Spawn tmux slave client");
tmate_debug("Spawning slave client for %s", client->ip_address);
tmux_socket_fd = client_connect(socket_path, 0);
if (tmux_socket_fd < 0) {

View File

@ -174,7 +174,8 @@ static void handle_sigchld(void)
}
if (WIFSIGNALED(status)) {
child_dead = 1; child_exit_status = EXIT_FAILURE;
child_dead = 1;
child_exit_status = EXIT_FAILURE;
}
if (child_dead)