Subject: | SIGPIPE in aioee() |
Hi guys,
Okay, must remember this little piece of information:
If you try to read from a pipe, socket, FIFO etc. when the writing end of the connection has been closed, you get an end-of-file indication (read() returns 0 bytes read). If you try and write to a pipe, socket etc. when the reading end has closed, then a SIGPIPE signal will be delivered to the process, killing it unless the signal is caught. (If you ignore or block the signal, the write() call fails with EPIPE.)
from:
http://www.erlenstar.demon.co.uk/unix/faq_3.html#SEC27
and do something about it. There are several similar issues with signals in my code, need to research the possibilities.
Jonathan Paton