[K42-discussion] Another problem with asynchrony
Bryan S Rosenburg
rosnbrg at us.ibm.com
Thu Oct 13 00:41:38 EST 2005
Okay. I've changed my mind. (Thanks for the input from Paul and Chris.)
I've decided to put a check for EPIPE in FileLinuxStream, which is the
client-side object used for sockets and pipes. The check won't affect
writes to regular files. Furthermore, FileLinuxStream already checks for
failure, so the additional check for EPIPE won't affect successful writes.
I discovered that the Posix spec for write() says that writes to sockets
as well as to pipes may return EPIPE and generate SIGPIPE, so
FileLinuxStream is even starting to look like the right place for the
signal generation.
At first cut, SIGPIPE generation seems to work as expected in
FileLinuxStream. I'll commit it after a bit more testing.
- Bryan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ozlabs.org/pipermail/k42-discussion/attachments/20051012/62f2cda9/attachment.htm
More information about the K42-discussion
mailing list