alternatives to signals like try/catch
alternatives to signals like try/catch
- Subject: alternatives to signals like try/catch
- From: "Daniel Walter" <email@hidden>
- Date: Tue, 5 Oct 2010 17:15:02 -0400
- Importance: Normal
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?
Daniel
|
_______________________________________________
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