#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 stumpc5):
I was running a moinmoin wiki with sage. With this patch applied, that
doesn't work anymore because of the new interruption handling in
{{{sage.ext._init_csage}}}:
When running the wiki using
{{{
$ sage wikiserver.py
}}}
and importing {{{sage.all.*}}} therein, I get the following error:
{{{
from sage.all import *
File "/home/stumpc5/progs/sage-5.7/devel/sage-main/build/sage/all.py",
line 59, in <module>
_init_csage()
File "c_lib.pyx", line 41, in sage.ext.c_lib._init_csage
(sage/ext/c_lib.c:569)
ValueError: signal only works in main thread
}}}
The issue seems to be solved when I comment out the signal in
{{{_init_csage}}}.
Question: Is there a (reasonable and finite) way to fix this issue
properly? Can something serious go wrong if I comment these lines out?
Thanks, Christian
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13908#comment:16>
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.