On Thu, 28 Sep 2000, Troy Davis wrote:

>    I have another question concerning sockets programming.  The problem
> I am having is with broken pipes - there exists the possibility that one
> side of the connection (client side) will break it's connection in the
> middle of a data stream (either incoming or outgoing).  Linux, which is
> running as the server side process with a blocking accept, then gives a
> broken pipe message and terminates the process.  However, I would like
> the process to recover from this and return to a blocking accept -
> waiting for another connection instead of producing a broken pipe
> message and terminating the process.
>    'A SIGPIPE signal is raised if a process sends or receives on a
> broken stream', according to the man socket entry.  How do I get my
> process to respond to a broken pipe and recover or pick up this SIGPIPE
> signal?

Install sighandler. See sources of "tee" program how to deal with it (find
sources to Debian shellutils package on http://www.debian.org/)

man sigaction

--
Tomek

-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/

Reply via email to