Try to be more clever about re-enabling terminal echo.

From Axel Belinfante.
This commit is contained in:
wkj 2004-08-02 15:21:38 +00:00
parent a87638642c
commit 8773b4b238

View file

@ -1021,7 +1021,8 @@ consread(void)
s = setecho(sfd, 0);
if(write(rcfd, buf, n) < 0)
exits(0);
setecho(sfd, s);
if(s)
setecho(sfd, s);
}
}