• 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: Blocking SIGPIPE.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Blocking SIGPIPE.


  • Subject: Re: Blocking SIGPIPE.
  • From: Shawn Erickson <email@hidden>
  • Date: Tue, 15 Sep 2009 13:48:47 -0700



On Tue, Sep 15, 2009 at 10:41 AM, Robert Bell <email@hidden> wrote:

Hi all,

Does anyone know why blocking SIGPIPE would be an issue in some applications? With 10.6, a simple application as shown below can block SIGPIPE, however, when embedded in a larger app which is using sockets and a variety of other things, SIGPIPE is not blocking. I can block other signals (such as SIGINT) with no issue. The same code had no problem in 10.5.

Do you have a strong reason to have your sockets trigger a SIGPIPE in the first place? If not then when you create your sockets set them to not generate SIGPIPE but instead return EPIPE.

man setsockopt
---
SO_NOSIGPIPE is an option that prevents SIGPIPE from being raised when a write fails on a socket to which there is no reader; instead, the write to the socket returns with the error EPIPE when there is no reader.
---

-Shawn
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Blocking SIGPIPE. (From: Robert Bell <email@hidden>)

  • Prev by Date: Xcode 3.2 Hidden Files Enable
  • Next by Date: dsymutil exited with code 11
  • Previous by thread: Blocking SIGPIPE.
  • Next by thread: Re: Xcode 2.5 vs. 3.2 (was: Re: Any hope to get an updated Xcode IDE for Leopard?)
  • Index(es):
    • Date
    • Thread