Signed-off-by: Tomek Grabiec <tgrab...@gmail.com>
---
 vm/signal.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/vm/signal.c b/vm/signal.c
index 32db706..20b5636 100644
--- a/vm/signal.c
+++ b/vm/signal.c
@@ -48,6 +48,11 @@ static void sigsegv_handler(int sig, siginfo_t *si, void 
*ctx)
                        goto exit;
                }
 
+               if (getExecEnv()->exception) {
+                       exception = getExecEnv()->exception;
+                       getExecEnv()->exception = NULL;
+               }
+
                throw_exception_from_signal(ctx, exception);
                return;
        }
-- 
1.6.0.6


------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Jatovm-devel mailing list
Jatovm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jatovm-devel

Reply via email to