forked from enlightenment/terminology
termpty: avoid ERR on exit of shell when keeping screen opened
This commit is contained in:
parent
b2b4c8cb18
commit
cfdab5a2af
|
@ -220,8 +220,9 @@ _pty_size(Termpty *ty)
|
|||
sz.ws_row = ty->h;
|
||||
sz.ws_xpixel = 0;
|
||||
sz.ws_ypixel = 0;
|
||||
if (ioctl(ty->fd, TIOCSWINSZ, &sz) < 0)
|
||||
ERR(_("Size set ioctl failed: %s"), strerror(errno));
|
||||
if (ty->fd >= 0)
|
||||
if (ioctl(ty->fd, TIOCSWINSZ, &sz) < 0)
|
||||
ERR(_("Size set ioctl failed: %s"), strerror(errno));
|
||||
}
|
||||
|
||||
static Eina_Bool
|
||||
|
|
Loading…
Reference in New Issue