コード例 #1
0
ファイル: interp_posix.py プロジェクト: Debug-Orz/Sypy
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)
コード例 #2
0
ファイル: interp_posix.py プロジェクト: njues/Sypy
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)
コード例 #3
0
ファイル: interp_posix.py プロジェクト: Debug-Orz/Sypy
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)
コード例 #4
0
ファイル: interp_posix.py プロジェクト: njues/Sypy
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)