Removed proxying completely and fixed the pthread_join bug revealed in the process

This commit is contained in:
Alex Young
2012-06-12 15:08:07 +01:00
parent 2a71b4e7a4
commit c7525f87dc
7 changed files with 50 additions and 37 deletions

View File

@@ -53,8 +53,9 @@ extern pthread_key_t cleanup_handler_key;
pthread_setspecific(cleanup_handler_key, context); \
break; \
case 1: /* fatal error, terminate thread */ \
debug( "Fatal error in thread %p", pthread_self() ); \
context->handler(context->data, 1); \
pthread_exit((void*) 1); \
/*pthread_exit((void*) 1);*/ \
abort(); \
case 2: /* non-fatal error, return to context of error handler setup */ \
context->handler(context->data, 0); \