新手问题 Working with Unix Processes 的问题

Awlter1 · November 30, 2018 · Last by zhuoerri replied at November 30, 2018 · 987 hits

85 页,请问为什么 Both signal handlers are called?

另外你们要想在 irb 里操练,要小心点

另外,这本书已经很久了,有什么知识点已经更新了话,哪位朋友想起来就提一句吧

Both signal handlers are called 因为 trap 会返回上一个信号的 handler https://ruby-doc.org/core-2.2.0/Signal.html#method-c-trap

trap returns the previous handler for the given signal

You need to Sign in before reply, if you don't have an account, please Sign up first.