Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我目前有一个ucontext会阻止 SIGINT,让我们将此上下文称为 A,而我希望其余的上下文在收到 SIGINT 时处理信号。问题是,如果 A 接收到 SIGINT,它确实会阻止它,但是第二个 Isetcontext会立即调用信号处理程序。当我在进程之间更改时,有没有办法重置信号?
ucontext
setcontext