try signal(); or one of the signal handler setting functions like sigaction
(). Use
one of these function to setup a signal handler to intercept SIGPIPE.
If you have more questions, try "UNIX Network Programming" by Richard
Stevens.
That's a very good reference book for network programming.
[EMAIL PROTECTED]@fsmlabs.com on 09/28/2000 03:57:16 PM
Sent by: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc:
Subject: [rtl] More TCP/IP
Hello-
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?
I know it is a little off topic, but I can't seem to find an answer
to this problem.
Troy Davis
Airborne Data Systems, Inc.
-- [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/
-- [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/