summaryrefslogtreecommitdiffstats
path: root/compat/forkpty-aix.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-08-19 16:06:45 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-08-19 16:06:45 +0000
commit966818c23d0cf15d93ad3c50ebadfd6d346ef428 (patch)
tree86a067cdf84d792e1567dfe7f4a33bdb67cb0d00 /compat/forkpty-aix.c
parent7c9f827bfe01f440e09597319fcf280685500b7f (diff)
Call tcsetattr(). Not tested.
Diffstat (limited to 'compat/forkpty-aix.c')
-rw-r--r--compat/forkpty-aix.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/compat/forkpty-aix.c b/compat/forkpty-aix.c
index c1f59f92..abc4c690 100644
--- a/compat/forkpty-aix.c
+++ b/compat/forkpty-aix.c
@@ -1,4 +1,4 @@
-/* $Id: forkpty-aix.c,v 1.2 2009-03-31 22:08:45 nicm Exp $ */
+/* $Id: forkpty-aix.c,v 1.3 2009-08-19 16:06:45 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -27,8 +27,7 @@
#include "tmux.h"
pid_t
-forkpty(int *master,
- unused char *name, unused struct termios *tio, struct winsize *ws)
+forkpty(int *master, unused char *name, struct termios *tio, struct winsize *ws)
{
int slave, fd;
char *path;
@@ -71,6 +70,8 @@ forkpty(int *master,
fatal("open failed");
close(fd);
+ if (tcsetattr(slave, TCSAFLUSH, tio) == -1)
+ fatal("tcsetattr failed");
if (ioctl(slave, TIOCSWINSZ, ws) == -1)
fatal("ioctl failed");