in reply to How to catch a broken input pipe

If the writer on the other end of a "pipe" that you are reading from goes away suddenly, no matter how dire the reasons, you are likely to only be told "end of file", not any kind of error condition nor exception.

You might be able to get a socket to tell you that the other side went away without properly closing the socket, but I actually think the OS will properly close the socket in such a way that you will be powerless to even detect that.

- tye        

  • Comment on Re: How to catch a broken input pipe (can't)