Skip to content

Commit 1d57af9

Browse files
authored
Merge pull request #229 from JuliaParallel/bk/no_signal_handler
Disables PETSc signal handler
2 parents 943bd14 + 0d0f55f commit 1d57af9

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "PETSc"
22
uuid = "ace2c81b-2b5f-4b1e-a30d-d662738edfe0"
3-
version = "0.4.6"
3+
version = "0.4.7"
44
authors = ["Boris Kaus <kaus@uni-mainz.de>", "Viral B. Shah <virals@gmail.com>", "Valentin Churavy <v.churavy@gmail.com>", "Erik Schnetter <eschnetter@perimeterinstitute.ca>", "Jeremy E. Kozdon <jeremy@kozdon.net>", "Simon Byrne <simonbyrne@gmail.com>"]
55

66
[deps]

src/init.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ end
5858

5959
function initialize(petsclib; log_view::Bool = false, options = String[])
6060
if !initialized(petsclib)
61+
62+
# deactivate the signal handler to avoid conflicts with Julia's own handlers when using multithreading
63+
push!(options, " -no_signal_handler ")
64+
6165
if log_view || !isempty(options)
6266
cli_opts = _build_petsc_options(log_view, options)
6367
prev_opts = get(ENV, "PETSC_OPTIONS", "")

0 commit comments

Comments
 (0)