diff options
author | Boris Faure <billiob@gmail.com> | 2015-02-17 22:07:42 +0100 |
---|---|---|
committer | Boris Faure <billiob@gmail.com> | 2015-02-17 22:08:47 +0100 |
commit | e4d357ace2fdbd9e625cfe376fde288ac61e5273 (patch) | |
tree | e7ff6325514303214814193177680a78d925af9a /src | |
parent | 3b78d8acc432b07bb5150a359097994716f1a1f7 (diff) |
make terminology work on solaris
tcsetattr() should only be called on the slave fd. On linux, both master
or slave are accepted, not on solaris.
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/termpty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/termpty.c b/src/bin/termpty.c index 5a6a95d..56fbd7f 100644 --- a/src/bin/termpty.c +++ b/src/bin/termpty.c | |||
@@ -387,12 +387,12 @@ termpty_new(const char *cmd, Eina_Bool login_shell, const char *cd, | |||
387 | } | 387 | } |
388 | 388 | ||
389 | 389 | ||
390 | tcgetattr(ty->fd, &t); | 390 | tcgetattr(ty->slavefd, &t); |
391 | t.c_cc[VERASE] = (erase_is_del) ? 0x7f : 0x8; | 391 | t.c_cc[VERASE] = (erase_is_del) ? 0x7f : 0x8; |
392 | #ifdef IUTF8 | 392 | #ifdef IUTF8 |
393 | t.c_iflag |= IUTF8; | 393 | t.c_iflag |= IUTF8; |
394 | #endif | 394 | #endif |
395 | if (tcsetattr(ty->fd, TCSANOW, &t) < 0) | 395 | if (tcsetattr(ty->slavefd, TCSANOW, &t) < 0) |
396 | { | 396 | { |
397 | ERR("unable to tcsetattr: %s", strerror(errno)); | 397 | ERR("unable to tcsetattr: %s", strerror(errno)); |
398 | goto err; | 398 | goto err; |