The SIGPIPE signal is posted by the kernel to the writer end of a pipe which has a detatched or closed reader. You can use this signal to take any corrective actions while / before you shutdown the writer end of the pipe.
Normally the write call would error out eith an EPIPE, so handling this signal is not essential.
|