Skip to content

Commit 548c26e

Browse files
committed
More changes
1 parent aeea62b commit 548c26e

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

src/sage/libs/singular/function.pyx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1801,9 +1801,7 @@ def lib(name):
18011801
si_opt_2 &= ~Sy_bit(V_REDEFINE)
18021802

18031803
cdef char* cname = omStrDup(str_to_bytes(name))
1804-
sig_on()
18051804
cdef bint failure = iiLibCmd(cname, 1, 1, 1)
1806-
sig_off()
18071805
si_opt_2 = vv
18081806

18091807
if failure:

src/sage/parallel/decorate.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -554,21 +554,6 @@ def fork(f=None, timeout=0, verbose=False):
554554
....: def g(): return gp.eval('a')
555555
sage: g() # needs sage.libs.pari
556556
'a'
557-
558-
We illustrate that segfaulting subprocesses are no trouble at all::
559-
560-
sage: cython('def f(): print(<char*>0)') # needs sage.misc.cython
561-
sage: @fork
562-
....: def g():
563-
....: os.environ["CYSIGNALS_CRASH_NDEBUG"]="yes" # skip enhanced backtrace (it is slow)
564-
....: f()
565-
sage: print("this works"); g() # needs sage.misc.cython
566-
this works...
567-
<BLANKLINE>
568-
------------------------------------------------------------------------
569-
Unhandled SIG...
570-
------------------------------------------------------------------------
571-
'NO DATA'
572557
"""
573558
F = Fork(timeout=timeout, verbose=verbose)
574559
return F(f) if f else F

0 commit comments

Comments
 (0)