diff --git a/cypari2/custom_block.pyx b/cypari2/custom_block.pyx index ded0908..ddbb829 100644 --- a/cypari2/custom_block.pyx +++ b/cypari2/custom_block.pyx @@ -16,9 +16,11 @@ cdef int custom_signal_is_blocked(): return PARI_SIGINT_block cdef void custom_signal_unblock(): + global PARI_SIGINT_block PARI_SIGINT_block = 0 cdef void custom_set_pending_signal(int sig): + global PARI_SIGINT_pending PARI_SIGINT_pending = sig def init_custom_block():