Re: alternatives to signals like try/catch
Re: alternatives to signals like try/catch
- Subject: Re: alternatives to signals like try/catch
- From: "A.M." <email@hidden>
- Date: Tue, 5 Oct 2010 17:33:22 -0400
On Oct 5, 2010, at 5:15 PM, Daniel Walter wrote:
> For shared objects such as ODBC drivers and browser plugins, it would be nice to handle signals without changing them in the main program. In Windows try/catch blocks handle these types of problems, but for Mac and Unix, there doesn't really seem to be a great alternative. The best I am seeing is to change all of the signals with sigaction one at a time every time a call passes into my shared object and change them all back with sigaction as this call returns. Are there any other alternatives?
-setjmp/longjmp?
A third-party library should likely not be handling any signals- if this is about SIGPIPE, flip that off and check for EPIPE instead.
Cheers,
M _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden