#13908: Exit Sage gracefully upon SIGHUP
----------------------------------+-----------------------------------------
Reporter: jdemeyer | Owner: jdemeyer
Type: enhancement | Status: closed
Priority: major | Milestone: sage-5.7
Component: c_lib | Resolution: fixed
Keywords: | Work issues:
Report Upstream: N/A | Reviewers: Volker Braun
Authors: Jeroen Demeyer | Merged in: sage-5.7.beta2
Dependencies: #13748, #13946 | Stopgaps:
----------------------------------+-----------------------------------------
Comment (by jdemeyer):
Replying to [comment:16 stumpc5]:
> Can something serious go wrong if I comment these lines out?
Not very serious. Interrupt handling might be a bit messed up, in
particular some interrupts (CTRL-C) might be seen twice: once by the
default Python handler (`raise KeyboardInterrupt`) and once by the special
Sage handler (written in C).
The line
{{{
signal.signal(signal.SIGINT, sage_python_check_interrupt)
}}}
is mainly used to ensure that only the Sage signal handler is used.
But this will certainly have no consequences beyond interrupt handling.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13908#comment:17>
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.