Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
nviennot committed Nov 10, 2019
1 parent 90c3b57 commit f132989
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Expand Up @@ -28,7 +28,7 @@ RUN set -ex; \
### Minimal run-time image
FROM alpine:3.9

RUN apk add --no-cache msgpack-c ncurses-libs libevent libexecinfo openssl zlib
RUN apk add --no-cache msgpack-c ncurses-libs libevent libexecinfo openssl zlib gdb bash

COPY --from=build /usr/lib/libssh.so.* /usr/lib/
COPY --from=build /usr/bin/tmate-ssh-server /usr/bin/
Expand Down
3 changes: 2 additions & 1 deletion server.c
Expand Up @@ -222,7 +222,8 @@ server_loop(void)
* This causes an infinite loop.
* The following check is a workaround to avoid the infinite loop.
*/
tmate_fatal("SSH socket not connected, but socket close wasn't detected");
tmate_info("SSH socket not connected, but socket close wasn't detected");
request_server_termination();
}

if (!tmate_server_request_exit)
Expand Down
2 changes: 1 addition & 1 deletion tmate-daemon-decoder.c
Expand Up @@ -45,7 +45,7 @@ static void tmate_header(struct tmate_session *session,
session->daemon_encoder.mpac_version = 4;
}

tmate_info("Daemon header: version=%s, protocol=%d",
tmate_info("tmate version=%s, protocol=%d",
session->client_version, session->client_protocol_version);

if (tmate_has_websocket()) {
Expand Down
2 changes: 1 addition & 1 deletion tmate-main.c
Expand Up @@ -174,7 +174,7 @@ char *get_socket_path(const char *_token)

for (char *c = token; *c; c++) {
if (*c == '/' || *c == '.')
*c = '_';
*c = '=';
}

xasprintf(&path, TMATE_WORKDIR "/sessions/%s", token);
Expand Down
3 changes: 1 addition & 2 deletions tmate-ssh-daemon.c
Expand Up @@ -156,8 +156,7 @@ void tmate_spawn_daemon(struct tmate_session *session)
set_session_token(session, token);
free(token);

tmate_info("Spawning daemon username=%s ip=%s",
client->username, client->ip_address);
tmate_info("Spawning daemon ip=%s", client->ip_address);

session->tmux_socket_fd = server_create_socket();
if (session->tmux_socket_fd < 0)
Expand Down

0 comments on commit f132989

Please sign in to comment.