termpty: avoid ERR on exit of shell when keeping screen opened

terminology-1.9
Boris Faure 2 years ago
parent b2b4c8cb18
commit cfdab5a2af
Signed by: borisfaure
GPG Key ID: 35C0410516166BE8
  1. 5
      src/bin/termpty.c

@ -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…
Cancel
Save