Ticket #13437: 13437_ALRM_no_interrupt.patch

File 13437_ALRM_no_interrupt.patch, 575 bytes (added by jdemeyer, 7 years ago)
  • sage/ext/c_lib.pyx

    # HG changeset patch
    # User Jeroen Demeyer <jdemeyer@cage.ugent.be>
    # Date 1347009824 -7200
    # Node ID 01a76d128a7a7075a74a4b27113cb56fcdc749ab
    # Parent  f51ba871a50b7d33235ea89cacdc1ef268a340ae
    [mq]: 13437_ALRM_no_interrupt.patch
    
    diff --git a/sage/ext/c_lib.pyx b/sage/ext/c_lib.pyx
    a b  
    4646        0
    4747    """
    4848    return _signals.sig_on_count
     49
     50cdef extern from 'signal.h':
     51    int SIGALRM
     52    int siginterrupt(int sig, int flag)
     53
     54def SIGALRM_set_interruptible(bint flag):
     55    siginterrupt(SIGALRM, flag)