From 001de87345dacce2e0712f6d1a7a8794b8d3d7ae Mon Sep 17 00:00:00 2001 From: bdemsky Date: Fri, 9 Oct 2009 10:33:37 +0000 Subject: [PATCH] sandbox file change --- Robust/src/Runtime/STM/sandbox.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Robust/src/Runtime/STM/sandbox.c b/Robust/src/Runtime/STM/sandbox.c index e02ecad6..ac020d9d 100644 --- a/Robust/src/Runtime/STM/sandbox.c +++ b/Robust/src/Runtime/STM/sandbox.c @@ -9,6 +9,7 @@ __thread int * counter_reset_pointer; void checkObjects() { if (abortenabled&&checktrans()) { + printf("Abort\n"); transaction_check_counter=(*counter_reset_pointer=HIGH_CHECK_FREQUENCY); longjmp(aborttrans, 1); } @@ -18,8 +19,13 @@ void checkObjects() { /* Do sandboxing */ void errorhandler(int sig, struct sigcontext ctx) { printf("Error\n"); - if (abortenabled&&checktrans()) + if (abortenabled&&checktrans()) { + sigset_t toclear; + sigemptyset(&toclear); + sigaddset(&toclear, sig); + sigprocmask(SIG_UNBLOCK, &toclear,NULL); longjmp(aborttrans, 1); + } threadhandler(sig, ctx); } -- 2.34.1