We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fc9908 commit b0d2ad2Copy full SHA for b0d2ad2
src/sch/dynamic.jl
@@ -32,9 +32,18 @@ function safepoint(state)
32
if state.halt.set
33
# Force dynamic thunks and listeners to terminate
34
for (inp_chan,out_chan) in values(state.worker_chans)
35
- close(inp_chan)
36
- close(out_chan)
+ # Closing these channels will fail if the worker died, which we
+ # allow.
37
+ try
38
+ close(inp_chan)
39
+ close(out_chan)
40
+ catch ex
41
+ if !(ex isa ProcessExitedException)
42
+ rethrow()
43
+ end
44
45
end
46
+
47
# Throw out of scheduler
48
throw(SchedulerHaltedException())
49
0 commit comments