aboutsummaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-08-14 21:24:46 +0000
committerTiago Cunha <tcunha@gmx.com>2009-08-14 21:24:46 +0000
commit7f77c395e38b35efa757f83037a051fea0fcd27d (patch)
tree192d5e3e07a400d44bd47aad51c02b8c51cf6579 /tty.c
parente2a18894b34e3651feecba1dd43c4f05c9566509 (diff)
downloadrtmux-7f77c395e38b35efa757f83037a051fea0fcd27d.tar.gz
rtmux-7f77c395e38b35efa757f83037a051fea0fcd27d.tar.bz2
rtmux-7f77c395e38b35efa757f83037a051fea0fcd27d.zip
Sync OpenBSD patchset 247:
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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tty.c b/tty.c
index a63dcc4f..fbcc0db0 100644
--- a/tty.c
+++ b/tty.c
@@ -1,4 +1,4 @@
-/* $Id: tty.c,v 1.125 2009-08-14 21:23:20 tcunha Exp $ */
+/* $Id: tty.c,v 1.126 2009-08-14 21:24:46 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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");