0
0
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:
Bram Moolenaar
2020-05-06 19:38:30 +02:00
parent 2a1381c305
commit 54ed0dff29
2 changed files with 4 additions and 0 deletions

View File

@@ -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()