#13311: alarm() doesn't work for Cython code
------------------------------------------+----------------------------
       Reporter:  alexc                   |        Owner:  jdemeyer
           Type:  defect                  |       Status:  needs_review
       Priority:  major                   |    Milestone:  sage-5.13
      Component:  c_lib                   |   Resolution:
       Keywords:  alarm signal interrupt  |    Merged in:
        Authors:  Jeroen Demeyer          |    Reviewers:
Report Upstream:  N/A                     |  Work issues:  rebase
         Branch:                          |       Commit:
   Dependencies:  #14029                  |     Stopgaps:
------------------------------------------+----------------------------

Comment (by pbruin):

 Generating a `SIGALRM` outside `sig_on()...sig_off()` calls
 `PyErr_SetInterrupt()`, which causes Python to raise a
 `KeyboardInterrupt`:
 {{{
 sage: alarm(1)
 sage: # wait 1 second
 KeyboardInterrupt
 }}}
 The same thing already happens without this patch.  Wouldn't it make sense
 to also raise an `AlarmInterrupt` outside `sig_on()...sig_off()`, too?

--
Ticket URL: <http://trac.sagemath.org/ticket/13311#comment:19>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to