Improve subprocess link error notification

M NEWS.txt
M PyShell.py
M rpc.py
This commit is contained in:
Kurt B. Kaiser 2005-05-10 03:44:24 +00:00
parent 77d08bcfc2
commit 935ea9a0b2
3 changed files with 9 additions and 3 deletions

View file

@ -330,9 +330,10 @@ class SocketIO(object):
try:
r, w, x = select.select([], [self.sock], [])
n = self.sock.send(s[:BUFSIZE])
except (AttributeError, socket.error):
# socket was closed
raise IOError
except (AttributeError, TypeError):
raise IOError, "socket no longer exists"
except socket.error:
raise
else:
s = s[n:]