check tcsetattr()

This commit is contained in:
Boris Faure 2015-01-10 21:01:51 +01:00
parent 36e5ca2165
commit cd04b71611
1 changed files with 5 additions and 1 deletions

View File

@ -392,7 +392,11 @@ termpty_new(const char *cmd, Eina_Bool login_shell, const char *cd,
#ifdef IUTF8
t.c_iflag |= IUTF8;
#endif
tcsetattr(ty->fd, TCSANOW, &t);
if (tcsetattr(ty->fd, TCSANOW, &t) < 0)
{
ERR("unable to tcsetattr: %s", strerror(errno));
goto err;
}
ty->hand_exe_exit = ecore_event_handler_add(ECORE_EXE_EVENT_DEL,
_cb_exe_exit, ty);