Re: Debugging SIGPIPE ?
Re: Debugging SIGPIPE ?
- Subject: Re: Debugging SIGPIPE ?
- From: Bill Bumgarner <email@hidden>
- Date: Wed, 07 Jul 2010 23:08:14 -0700
On Jul 7, 2010, at 9:59 AM, Matt DeFoor wrote:
> Is the app performing socket IO? If so, simply setting up a handler
> for SIGPIPE is sometimes not good enough. You may have to test if you
> can write to the socket:
And... sometimes it really is the debugger. The debugger is often configured to handle signals by breaking, even when handling of the signal is something you might expect.
However, in general and in the large, you should never ever write application code that tries to handle signals unless you absolutely positively have to. In unix signal handlers, you are pretty much not allowed to do anything interesting. Memory allocations and, thus, Objective-C messaging isn't allowed, for example.
b.bum
_______________________________________________
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