From 21b06a509cddf33d7b31bc150fc04fdf2ff5d2ac Mon Sep 17 00:00:00 2001 From: Takafumi Arakaki Date: Thu, 20 Sep 2018 21:53:17 -0700 Subject: [PATCH] Call jl_sigatomic_begin at the end of init_julia block This is required for using `reenable_sigint` in `pyjlwrap_call`. See: PyCall 574 --- julia/core.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/julia/core.py b/julia/core.py index 66e18d37..325e6e4e 100644 --- a/julia/core.py +++ b/julia/core.py @@ -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