Re: SIGPIPE with sockets
Re: SIGPIPE with sockets
- Subject: Re: SIGPIPE with sockets
- From: Scott Ribe <email@hidden>
- Date: Mon, 19 Jan 2009 08:41:02 -0700
- Thread-topic: SIGPIPE with sockets
Any decent library probably ought to set up the socket to not throw the
signal, like so:
err = setsockopt( mSocket, SOL_SOCKET, SO_NOSIGPIPE, &flg, sizeof flg );
So that the library can return the error EPIPE and let the application deal
gracefully with the condition without having to muck around with signal
handlers.
--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 722-0567 voice
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden