Re: alternatives to signals like try/catch
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com 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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
A.M.