Re: ignoring sigpipe
Re: ignoring sigpipe
- Subject: Re: ignoring sigpipe
- From: Douglas Davidson <email@hidden>
- Date: Fri, 4 Apr 2003 13:49:05 -0800
On Friday, April 4, 2003, at 12:04 PM, Michael Robinette wrote:
I also set the app to ignore SIGPIPE and verify that the handler is
SIG_IGN, as demonstrated in the MoreUNIX examples.
But SIGPIPE is still raised when I transfer large amounts of data. It
happens often, but not reliably, and it only happens with a certain
client app.
If you specify that SIGPIPE is ignored, you shouldn't receive it.
There is also the socket option SO_NOSIGPIPE, which you can set on a
per-socket basis with setsockopt(), to turn off SIGPIPE for that
particular socket.
Douglas Davidson
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.