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:
1 parent
f3c1f4c548
commit
87d7c59c6e
1 file changed
+3
-3
@@ -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