Ilia K <ki.stfu@gmail.com> sent this patch. He noted that it was possible for
child to be terminated after isAlive call and before we send it quit command.
In this case, sending command to it causes OSError. This patch just adds this
exception to the except list.
llvm-svn: 227086
self.child.sendline('settings set interpreter.prompt-on-quit false')
self.child.sendline('quit')
self.child.expect(pexpect.EOF)
- except (ValueError, pexpect.ExceptionPexpect):
+ except (ValueError, OSError, pexpect.ExceptionPexpect):
# child is already terminated
pass
finally: