diff options
Diffstat (limited to 'server-client.c')
-rw-r--r-- | server-client.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server-client.c b/server-client.c index 644d69e2..e3c1adaa 100644 --- a/server-client.c +++ b/server-client.c @@ -21,15 +21,11 @@ #include <sys/uio.h> #include <errno.h> -#include <event.h> #include <fcntl.h> -#include <imsg.h> -#include <paths.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <unistd.h> -#include <vis.h> #include "tmux.h" @@ -3037,6 +3033,10 @@ server_client_dispatch_identify(struct client *c, struct imsg *imsg) c->name = name; log_debug("client %p name is %s", c, c->name); +#ifdef __CYGWIN__ + c->fd = open(c->ttyname, O_RDWR|O_NOCTTY); +#endif + if (c->flags & CLIENT_CONTROL) control_start(c); else if (c->fd != -1) { |