Exemplo n.º 1
0
def abort(space):
    """Abort the interpreter immediately.  This 'dumps core' or otherwise fails
in the hardest way possible on the hosting operating system."""
    import signal
    rposix.os_kill(os.getpid(), signal.SIGABRT)
Exemplo n.º 2
0
def abort(space):
    """Abort the interpreter immediately.  This 'dumps core' or otherwise fails
in the hardest way possible on the hosting operating system."""
    import signal
    rposix.os_kill(os.getpid(), signal.SIGABRT)
Exemplo n.º 3
0
def kill(space, pid, sig):
    "Kill a process with a signal."
    try:
        rposix.os_kill(pid, sig)
    except OSError, e:
        raise wrap_oserror(space, e)
Exemplo n.º 4
0
def kill(space, pid, sig):
    "Kill a process with a signal."
    try:
        rposix.os_kill(pid, sig)
    except OSError, e:
        raise wrap_oserror(space, e)