Skip to content

Commit 245ac4c

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 5fc02df commit 245ac4c

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
@@ -667,6 +667,8 @@ def __init__(self, init_julia=True, jl_init_path=None, runtime=None,
667667
end
668668
""")
669669

670+
self.api.jl_sigatomic_begin()
671+
670672
# Currently, PyJulia assumes that `Main.PyCall` exsits. Thus, we need
671673
# to import `PyCall` again here in case `init_julia=False` is passed:
672674
self._call(u"using PyCall")

0 commit comments

Comments
 (0)