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.
当 SIGPIPE 的信号处理函数被触发时,如何检索导致它的文件描述符?谢谢你的提示。
看看这个问题和答案。Dietrich 描述,如果您忽略 SIGPIPE,那么您将获得从 read 或 write 函数返回的 EPIPE,从而知道遇到错误的文件描述符。