We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In Julia 1.9, a SIGINT would reliably still trigger an InterruptExcpetion when a non-interactive thread was blocked by a ccall.
SIGINT
InterruptExcpetion
ccall
# try_csleep.jl Base.exit_on_sigint(false) @show Threads.nthreads() println(getpid()) try wait(Threads.@spawn begin @show Threads.threadid() ccall(:sleep, Cuint, (Cuint,), 60) end) catch e println("error $e") exit() end println("success")
On Julia 1.9.4:
├ julia -t 2 try_csleep.jl Threads.nthreads() = 2 1125258 Threads.threadid() = 2 ^Cerror InterruptException()
(also able to trigger it via kill -INT <procid>)
kill -INT <procid>
On Julia 1.10.0
├ julia -t 2 try_csleep.jl Threads.nthreads() = 2 1125350 Threads.threadid() = 2 ^C^C^C^C^C^C^C^CWARNING: Force throwing a SIGINT error InterruptException()
(kill -INT <procid> does nothing)
Possibly related to #52291 (cc @Keno @vtjnash)
The text was updated successfully, but these errors were encountered:
Related in the sense that it's the same problem, but not in the sense that this predates the additional complications that prompted that issue.
Sorry, something went wrong.
No branches or pull requests
In Julia 1.9, a
SIGINT
would reliably still trigger anInterruptExcpetion
when a non-interactive thread was blocked by accall
.On Julia 1.9.4:
(also able to trigger it via
kill -INT <procid>
)On Julia 1.10.0
(
kill -INT <procid>
does nothing)Possibly related to #52291 (cc @Keno @vtjnash)
The text was updated successfully, but these errors were encountered: