Skip to content

Commit 21b06a5

Browse files
committed
Call jl_sigatomic_begin at the end of init_julia block
This is required for using `reenable_sigint` in `pyjlwrap_call`. See: PyCall 574
1 parent f7a552d commit 21b06a5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

julia/core.py

+2
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,8 @@ def __init__(self, init_julia=True, jl_init_path=None, runtime=None,
635635
end
636636
""")
637637

638+
self.api.jl_sigatomic_begin()
639+
638640
# Whether we initialized Julia or not, we MUST create at least one
639641
# instance of PyObject and the convert function. Since these will be
640642
# needed on every call, we hold them in the Julia object itself so

0 commit comments

Comments
 (0)