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

Capturing SIGPIPE


  • Subject: Capturing SIGPIPE
  • From: Peter <email@hidden>
  • Date: Mon, 24 Jan 2005 15:51:57 +0800

I have written a Cocoa program to communicate with the child process via pipe. Sometime the child process quits or gets terminated in the unexpected ways, on the console or debugger will show message SIGPIPE error and my Cocoa program just quit without warning. I trace my program lines to a write() statement which I suppose the handle have close since the child process quits.

How do I capture SIGPIPE and also without quitting the Cocoa app ?

I suppose it would be a good idea if the Cocoa app captures this signal, displays an Alert box and continue to do what it has been doing before.

Thanks in advance.

Peter.

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


  • Follow-Ups:
    • Re: Capturing SIGPIPE
      • From: j o a r <email@hidden>
  • Prev by Date: [ANN] iSnip 1.0
  • Next by Date: Re: Capturing SIGPIPE
  • Previous by thread: [Moderator] Re: [ANN] iSnip 1.0
  • Next by thread: Re: Capturing SIGPIPE
  • Index(es):
    • Date
    • Thread