projects
/
IRC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4d7bd2
)
add sandbox support
author
bdemsky
<bdemsky>
Thu, 1 Oct 2009 06:46:38 +0000
(06:46 +0000)
committer
bdemsky
<bdemsky>
Thu, 1 Oct 2009 06:46:38 +0000
(06:46 +0000)
Robust/src/Runtime/thread.c
patch
|
blob
|
history
diff --git
a/Robust/src/Runtime/thread.c
b/Robust/src/Runtime/thread.c
index b82a6349d877fa866c36b5918543429f0b86a19c..24164e4d54f2fd6fab954473d1515c8e53cb968f 100644
(file)
--- a/
Robust/src/Runtime/thread.c
+++ b/
Robust/src/Runtime/thread.c
@@
-166,7
+166,11
@@
void initializethreads() {
initializeexithandler();
//deprecated use of sighandler, but apparently still works
+#ifdef SANDBOX
+ sig.sa_handler=(void *)errorhandler;
+#else
sig.sa_handler=(void *)threadhandler;
+#endif
sig.sa_flags=SA_RESTART;
sigemptyset(&sig.sa_mask);