Make non-fatal errors return properly

This commit is contained in:
Alex Young
2012-06-21 18:01:56 +01:00
parent f37a217cb9
commit 80f298f6cd
4 changed files with 202 additions and 14 deletions

View File

@@ -9,7 +9,7 @@
#include "util.h"
pthread_key_t cleanup_handler_key;
pthread_key_t cleanup_handler_key;
int log_level = 2;
@@ -29,7 +29,7 @@ void error_handler(int fatal __attribute__ ((unused)) )
pthread_exit((void*) 1);
}
longjmp(context->jmp, 1);
longjmp(context->jmp, fatal ? 1 : 2 );
}