Is there anyway by which a process on a connected socket can find out
as to whether its peer process has crashed or not? I have tried to set
the SO_KEEPALIVE option for the socket, but the SIGPIPE signal that is
supposed to come on connection breakdown, never arises.