mirror of
https://github.com/vim/vim.git
synced 2025-10-26 09:14:23 -04:00
patch 8.2.0702: running channel tests may leave running process behind
Problem: Running channel tests may leave running process behind.
Solution: Make Python client exit when running into EOF. (Kurtis Rader,
part of #6046)
This commit is contained in:
@@ -29,6 +29,8 @@ if __name__ == "__main__":
|
||||
|
||||
while True:
|
||||
typed = sys.stdin.readline()
|
||||
if typed == "": # EOF -- stop
|
||||
break
|
||||
if typed.startswith("quit"):
|
||||
print("Goodbye!")
|
||||
sys.stdout.flush()
|
||||
|
||||
Reference in New Issue
Block a user