Skip to content

Commit db7ad33

Browse files
tornariadimpase
authored andcommitted
fix custom signal handling, which was broken after #166
There was a typo in #181: when the pari sigint handling was converted to a general mechanism, the line ``` PARI_SIGINT_pending = 0; ``` got translated into ``` custom_signal_unblock(); ``` instead of the correct ``` custom_set_pending_signal(0); ``` This error didn't take effect until #166 removed the pari sigint handling. This causes some doctest failures in sagemath: ``` src/sage/coding/linear_code.py src/sage/geometry/integral_points.pxi src/sage/rings/integer.pyx src/sage/rings/polynomial/polynomial_element.pyx ``` related to mishandling of AlarmInterrupt. See: https://github.com/sagemath/cysignals/pull/181/files#r1904885037
1 parent e26017e commit db7ad33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cysignals/implementation.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ static void _sig_on_interrupt_received(void)
591591
do_raise_exception(cysigs.interrupt_received);
592592
cysigs.sig_on_count = 0;
593593
cysigs.interrupt_received = 0;
594-
custom_signal_unblock();
594+
custom_set_pending_signal(0);
595595

596596
#if HAVE_SIGPROCMASK
597597
sigprocmask(SIG_SETMASK, &oldset, NULL);

0 commit comments

Comments
 (0)