Commit 5d598422 authored by Leigh Stoller's avatar Leigh Stoller

Tip side can get an ECONNRESET, which indicates tip side closed

parent 7e900faf
......@@ -520,6 +520,10 @@ dropped:
/* XXX commonly observed */
if (errno == EIO || errno == EAGAIN)
if (errno == ECONNRESET)
goto disconnected;
die("%s: read: %s", Ptyname, geterr(errno));
if (cc == 0) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment