Skip to content

Commit 07389dd

Browse files
committed
Use SIGQUIT instead of SIGTERM
This allows for easier collection of core dumps. X-ref: JuliaLang/julia#45864
1 parent 6c7cdb5 commit 07389dd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/managers.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -747,12 +747,12 @@ function kill(manager::LocalManager, pid::Int, config::WorkerConfig; exit_timeou
747747

748748
# Check to see if our child exited, and if not, send an actual kill signal
749749
if !process_exited(config.process)
750-
@warn("Failed to gracefully kill worker $(pid), sending SIGTERM")
751-
kill(config.process, Base.SIGTERM)
750+
@warn("Failed to gracefully kill worker $(pid), sending SIGQUIT")
751+
kill(config.process, Base.SIGQUIT)
752752

753753
sleep(term_timeout)
754754
if !process_exited(config.process)
755-
@warn("Worker $(pid) ignored SIGTERM, sending SIGKILL")
755+
@warn("Worker $(pid) ignored SIGQUIT, sending SIGKILL")
756756
kill(config.process, Base.SIGKILL)
757757
end
758758
end

test/distributed_exec.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1916,7 +1916,7 @@ begin
19161916

19171917
# Next, ensure we get a log message when a worker does not cleanly exit
19181918
w = only(addprocs(1))
1919-
@test_logs (:warn, r"sending SIGTERM") begin
1919+
@test_logs (:warn, r"sending SIGQUIT") begin
19201920
remote_do(w) do
19211921
# Cause the 'exit()' message that `rmprocs()` sends to do nothing
19221922
Core.eval(Base, :(exit() = nothing))

0 commit comments

Comments
 (0)