From 2cb690419314a287e3d83ee339aad4b7f0718293 Mon Sep 17 00:00:00 2001 From: Jameson Nash Date: Thu, 29 Jul 2021 12:05:08 -0400 Subject: [PATCH] add stream shutdown and support half-duplex operation (JuliaLang/julia#40783) Fixes one of the issues mentioned in JuliaLang/julia#24526 --- src/process_messages.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/process_messages.jl b/src/process_messages.jl index 8d5dac5af571e9..732b972858dc97 100644 --- a/src/process_messages.jl +++ b/src/process_messages.jl @@ -230,8 +230,8 @@ function message_handler_loop(r_stream::IO, w_stream::IO, incoming::Bool) deregister_worker(wpid) end - isopen(r_stream) && close(r_stream) - isopen(w_stream) && close(w_stream) + close(r_stream) + close(w_stream) if (myid() == 1) && (wpid > 1) if oldstate != W_TERMINATING