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.
我读到kill对这里的信号不安全。
如果我想杀死子进程作为信号处理程序内部清理的一部分,我还应该使用什么?我的替代方案是什么?
您误读了,该页面说kill()(以及表中的所有其他内容)应该是异步信号安全的。任何不在表中的东西都被认为是不安全的。
kill()