diff --git a/src/main.c b/src/main.c index 7f0fe4a..49837a9 100644 --- a/src/main.c +++ b/src/main.c @@ -72,9 +72,6 @@ int main(int argc, char *argv[]) if (option.log) log_open(option.log_filename); - /* Open socket */ - socket_configure(); - /* Enable ANSI text formatting (colors etc.) */ print_enable_ansi_formatting(); @@ -82,6 +79,9 @@ int main(int argc, char *argv[]) tio_printf("tio v%s", VERSION); tio_printf("Press ctrl-t q to quit"); + /* Open socket */ + socket_configure(); + /* Connect to tty device */ if (option.no_autoconnect) status = tty_connect(); diff --git a/src/socket.c b/src/socket.c index b254a29..d2b125e 100644 --- a/src/socket.c +++ b/src/socket.c @@ -92,6 +92,8 @@ void socket_configure(void) memset(clientfds, -1, sizeof(clientfds)); atexit(socket_exit); + + tio_printf("Listening on socket %s", socket_filename()); } void socket_write(char input_char)