summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_channel_pipe.py
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-04-26 17:16:24 +0200
committerBram Moolenaar <Bram@vim.org>2016-04-26 17:16:24 +0200
commitb2658a1ab02cd0ba848164f70c7c464fdc398162 (patch)
treea84b975826fc11bbba0f8320d12e726f238be9b6 /src/testdir/test_channel_pipe.py
parentd10abe52019d10403eb559ea0a424bbd310b738f (diff)
patch 7.4.1787v7.4.1787
Problem: When a job ends the close callback is invoked before other callbacks. On Windows the close callback is not called. Solution: First invoke out/err callbacks before the close callback. Make the close callback work on Windows.
Diffstat (limited to 'src/testdir/test_channel_pipe.py')
-rw-r--r--src/testdir/test_channel_pipe.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/testdir/test_channel_pipe.py b/src/testdir/test_channel_pipe.py
index fa1a40f131..5f32506741 100644
--- a/src/testdir/test_channel_pipe.py
+++ b/src/testdir/test_channel_pipe.py
@@ -16,6 +16,8 @@ if __name__ == "__main__":
else:
print(sys.argv[1])
sys.stdout.flush()
+ if sys.argv[1].startswith("quit"):
+ sys.exit(0)
while True:
typed = sys.stdin.readline()