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.
例如,我SIGINT在A 中阻止了 a ,假设我在它运行时击中了它,但没有按预期发生。ucontext^C (SIGINT)
SIGINT
ucontext
^C (SIGINT)
在上下文 B 中,有一个SIGINT处理程序。当 Iswapcontext(A, B)然后ucontextB 立即执行信号处理程序。即使上下文 A 是接收并阻止此信号的那个。有没有办法确保进程 B 不会立即进入信号处理程序?
swapcontext(A, B)