freebsd.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:vivisect-py3 作者: bat-serjo 项目源码 文件源码
def platformProcessEvent(self, event):

        pid,status = event

        if os.WIFEXITED(status):

            exitcode = os.WEXITSTATUS(status)

            tid = self.getMeta("ThreadId", None)
            if tid == None or len(self.getThreads()) == 0:
                self._fireExit( exitcode )
                return

            self._fireExitThread(tid, exitcode)

            # set thread to pid ( the thread exited... so... )
            self.setMeta('ThreadId', pid)
            self._fireExit( exitcode )

        elif os.WIFSIGNALED(status):
            self._fireExit( os.WTERMSIG( status ) )

        elif os.WIFSTOPPED(status):
            sig = os.WSTOPSIG(status)
            self.handlePosixSignal(sig)

        else:
            print("OMG WTF JUST HAPPENED??!?11/!?1?>!")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号