diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-08-11 22:34:17 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-08-11 22:34:17 +0000 |
commit | e0a19abb99aebcee544c451ff5e99f6a59d42d0c (patch) | |
tree | 110224661ebd7e160076f8d43ff626c39afbe924 /tty.c | |
parent | 4310282a4c52f1885ae2eb80b106c9c03564a0b8 (diff) | |
download | rtmux-e0a19abb99aebcee544c451ff5e99f6a59d42d0c.tar.gz rtmux-e0a19abb99aebcee544c451ff5e99f6a59d42d0c.tar.bz2 rtmux-e0a19abb99aebcee544c451ff5e99f6a59d42d0c.zip |
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.
Diffstat (limited to 'tty.c')
-rw-r--r-- | tty.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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"); |