Coder Social home page Coder Social logo

Comments (4)

zhi1ong avatar zhi1ong commented on May 5, 2024 2

@whuthj 刚刚没细看,有点答错了,我以为你要问如果真没有这个方法(GetCmdLine)怎么办,你这里打印不出来是因为这里还没赋值,要等 xhook_refresh 执行之后才会赋值的。

from patrons.

whuthj avatar whuthj commented on May 5, 2024

第二个问题看到sigsetjmp和siglongjmp的处理了

from patrons.

whuthj avatar whuthj commented on May 5, 2024

不过第二个还是有一些小问题,就是如果其他线程崩溃了(SIGSEGV),这里HandleSignal也会拦截到,那么可能会导致其他线程崩溃被吞没了,可能引发一些其他问题

from patrons.

zhi1ong avatar zhi1ong commented on May 5, 2024
  1. 尽量拿,真要是没有就用 libz 里的一个函数指针,真要是都不对,也没关系,本来也不需要保证 100% 兼容,线上情况看几乎没有拿不到这个的。

  2. 劫持信号的处理函数里会做判断,有一个 flag,如果不是我自己引发的信号会交还给原本的信号处理器处理。

from patrons.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.