Index: test/win/win_multiprocess.cc |
diff --git a/test/win/win_multiprocess.cc b/test/win/win_multiprocess.cc |
index 9955e33d73c067c0cf45af8744e8c2e4f8126032..1eece13f1cd825bf59907dd1001368956ec93242 100644 |
--- a/test/win/win_multiprocess.cc |
+++ b/test/win/win_multiprocess.cc |
@@ -168,6 +168,11 @@ void WinMultiprocess::Run() { |
WinMultiprocessParent(); |
+ // Close our side of the handles now that we're done. The child can |
+ // use this to know when it's safe to complete. |
+ pipe_p2c_write_.reset(); |
+ pipe_c2p_read_.reset(); |
+ |
// Wait for the child to complete. |
ASSERT_EQ(WAIT_OBJECT_0, |
WaitForSingleObject(child_handle_.get(), INFINITE)); |