aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@cs.unc.edu>2013-05-15 02:20:14 -0400
committerGlenn Elliott <gelliott@cs.unc.edu>2013-05-15 02:20:14 -0400
commit992ce8df6eae19c6826018d62cb337fbc632de75 (patch)
tree36ba9db2be606eeb8b47b4f6836517f7e5f55acd /src
parent62bed6ce5f20e44c80369d224812c012f5dd5ef1 (diff)
signal handling in gpuspin
Diffstat (limited to 'src')
-rw-r--r--src/signal.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/signal.c b/src/signal.c
index 397a797..1bd0f62 100644
--- a/src/signal.c
+++ b/src/signal.c
@@ -99,9 +99,11 @@ void longjmp_on_litmus_signal(int signum)
99 lit_env = pop_sigjmp(); 99 lit_env = pop_sigjmp();
100 if (lit_env) { 100 if (lit_env) {
101 /* What you say?! */ 101 /* What you say?! */
102 //printf("%d: we get signal = %d!\n", gettid(), signum);
102 siglongjmp(lit_env->env, signum); /* restores signal mask */ 103 siglongjmp(lit_env->env, signum); /* restores signal mask */
103 } 104 }
104 else { 105 else {
105 /* silently ignore the signal */ 106 /* silently ignore the signal */
107 //printf("%d: silently ignoring signal.\n", gettid());
106 } 108 }
107} 109}