mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 22:14:27 +08:00
Fix another windows issue
This commit is contained in:
@@ -189,7 +189,9 @@ class _CompiledSubprocess(object):
|
||||
pickle_dump(data, self._process.stdin)
|
||||
except (socket.error, IOError) as e:
|
||||
# Once Python2 will be removed we can just use `BrokenPipeError`.
|
||||
if e.errno != errno.EPIPE:
|
||||
# Also, somehow in windows it returns EINVAL instead of EPIPE if
|
||||
# the subprocess dies.
|
||||
if e.errno not in (errno.EPIPE, errno.EINVAL):
|
||||
# Not a broken pipe
|
||||
raise
|
||||
self.kill()
|
||||
|
||||
Reference in New Issue
Block a user