Skip to content

Commit 2cb6904

Browse files
authored
add stream shutdown and support half-duplex operation (JuliaLang/julia#40783)
Fixes one of the issues mentioned in JuliaLang/julia#24526
1 parent 740a33a commit 2cb6904

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/process_messages.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,8 @@ function message_handler_loop(r_stream::IO, w_stream::IO, incoming::Bool)
230230
deregister_worker(wpid)
231231
end
232232

233-
isopen(r_stream) && close(r_stream)
234-
isopen(w_stream) && close(w_stream)
233+
close(r_stream)
234+
close(w_stream)
235235

236236
if (myid() == 1) && (wpid > 1)
237237
if oldstate != W_TERMINATING

0 commit comments

Comments
 (0)