Exemplo n.º 1
0
 def does_stuff():
     interp_signal.pypysig_setflag(signal.SIGUSR1)
     os.killpg(os.getpgrp(), signal.SIGUSR1)
     interp_signal.pypysig_ignore(signal.SIGUSR1)
     while True:
         n = interp_signal.pypysig_poll()
         if n < 0 or n == signal.SIGUSR1:
             break
     return n
Exemplo n.º 2
0
def check(expected):
    res = interp_signal.pypysig_poll()
    os.write(1, "poll() => %d, expected %d\n" % (res, expected))
    assert res == expected
Exemplo n.º 3
0
def check(expected):
    res = interp_signal.pypysig_poll()
    os.write(1, "poll() => %d, expected %d\n" % (res, expected))
    assert res == expected