Skip to content

Commit

Permalink
Call jl_sigatomic_begin at the end of init_julia block
Browse files Browse the repository at this point in the history
This is required for using `reenable_sigint` in `pyjlwrap_call`.

See: PyCall 574
  • Loading branch information
tkf committed Sep 24, 2018
1 parent f7a552d commit 21b06a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions julia/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,8 @@ def __init__(self, init_julia=True, jl_init_path=None, runtime=None,
end
""")

self.api.jl_sigatomic_begin()

# Whether we initialized Julia or not, we MUST create at least one
# instance of PyObject and the convert function. Since these will be
# needed on every call, we hold them in the Julia object itself so
Expand Down

0 comments on commit 21b06a5

Please sign in to comment.