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.
This commit is contained in:
Boris Faure 2015-02-17 22:07:42 +01:00
parent 3b78d8acc4
commit e4d357ace2
1 changed files with 2 additions and 2 deletions

View File

@ -387,12 +387,12 @@ termpty_new(const char *cmd, Eina_Bool login_shell, const char *cd,
}
tcgetattr(ty->fd, &t);
tcgetattr(ty->slavefd, &t);
t.c_cc[VERASE] = (erase_is_del) ? 0x7f : 0x8;
#ifdef IUTF8
t.c_iflag |= IUTF8;
#endif
if (tcsetattr(ty->fd, TCSANOW, &t) < 0)
if (tcsetattr(ty->slavefd, TCSANOW, &t) < 0)
{
ERR("unable to tcsetattr: %s", strerror(errno));
goto err;