From b2658a1ab02cd0ba848164f70c7c464fdc398162 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 26 Apr 2016 17:16:24 +0200 Subject: patch 7.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. --- src/testdir/test_channel_pipe.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/testdir/test_channel_pipe.py') diff --git a/src/testdir/test_channel_pipe.py b/src/testdir/test_channel_pipe.py index fa1a40f13..5f3250674 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() -- cgit v1.2.1