mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 22:14:27 +08:00
subprocess: listen: exit normally with EOFError
This is an expected case, since the parent closed normally, and therefore the subprocess should exit with 0.
This commit is contained in:
committed by
Dave Halter
parent
f3c1f4c548
commit
87d7c59c6e
@@ -304,9 +304,9 @@ class Listener(object):
|
||||
try:
|
||||
payload = pickle_load(stdin)
|
||||
except EOFError:
|
||||
# It looks like the parent process closed. Don't make a big fuss
|
||||
# here and just exit.
|
||||
exit(1)
|
||||
# It looks like the parent process closed.
|
||||
# Don't make a big fuss here and just exit.
|
||||
exit(0)
|
||||
try:
|
||||
result = False, None, self._run(*payload)
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user