From e0a19abb99aebcee544c451ff5e99f6a59d42d0c Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 11 Aug 2009 22:34:17 +0000 Subject: Initialise log_fd to -1, prevents spurious disconnection of the client when it ends up as fd 0 (likely if the server is started with "tmux start"). Also add some extra debugging messages to server.c. --- tty.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tty.c') diff --git a/tty.c b/tty.c index d850347a..c6904409 100644 --- a/tty.c +++ b/tty.c @@ -49,6 +49,7 @@ tty_init(struct tty *tty, int fd, char *path, char *term) { tty->path = xstrdup(path); tty->fd = fd; + tty->log_fd = -1; if (term == NULL || *term == '\0') tty->termname = xstrdup("unknown"); -- cgit