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.
kill
1 parent fda7299 commit 0d420f0Copy full SHA for 0d420f0
src/workers.jl
@@ -82,12 +82,12 @@ function terminate!(w::Worker, from::Symbol=:manual)
82
empty!(w.futures)
83
end
84
signal = Base.SIGTERM
85
- while true
+ while !process_exited(w.process)
86
+ @debug "sending signal $signal to worker $(w.pid)"
87
kill(w.process, signal)
88
signal = signal == Base.SIGTERM ? Base.SIGINT : Base.SIGKILL
89
process_exited(w.process) && break
90
sleep(0.1)
- process_exited(w.process) && break
91
92
if !(w.socket.status == Base.StatusUninit || w.socket.status == Base.StatusInit || w.socket.handle === C_NULL)
93
close(w.socket)
0 commit comments