How do I find the file descriptor that calls SIGPIPE?
When the SIGPIPE signal handling function fires, how do I get which file descriptor is calling it? Thanks for the tip.
+3
user180574
source
to share
1 answer
Take a look at this question and answer . Dietrich describes that if you ignore SIGPIPE, you will get EPIPE returned from the read or write function, and thus know the file descriptor that is encountering the error.
0
Kyle burton
source
to share