A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Avoid endless bogus messages when an exception is raised from outside a context.
[simgrid.git]
/
src
/
xbt
/
context.c
diff --git
a/src/xbt/context.c
b/src/xbt/context.c
index
fd3c271
..
c01edd4
100644
(file)
--- a/
src/xbt/context.c
+++ b/
src/xbt/context.c
@@
-175,7
+175,10
@@
static ex_ctx_t *__context_ex_ctx(void)
static void __context_ex_terminate(xbt_ex_t *e) {
xbt_ex_display(e);
- __context_exit(current_context, e->value);
+ if(current_context!=init_context)
+ __context_exit(current_context, e->value);
+ else
+ abort();
}
/** \name Functions