• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: SIGPIPE with sockets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >SIGPIPE with sockets (From: malcom <email@hidden>)

  • Prev by Date: Re: NSOutlineView, tracking in a custom NSTextFieldCell, & Shift&Cmd Keys
  • Next by Date: Re: Cocoa and the need for a dynamic language
  • Previous by thread: Re: SIGPIPE with sockets
  • Next by thread: Cursor updates - bug or programmer ignorance?
  • Index(es):
    • Date
    • Thread