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
Fix bug related to the exception mechanism once the context module exits
[simgrid.git]
/
src
/
xbt
/
xbt_os_thread.c
diff --git
a/src/xbt/xbt_os_thread.c
b/src/xbt/xbt_os_thread.c
index
f827c4a
..
cb7a98e
100644
(file)
--- a/
src/xbt/xbt_os_thread.c
+++ b/
src/xbt/xbt_os_thread.c
@@
-118,6
+118,10
@@
void xbt_os_thread_mod_exit(void)
#ifndef HAVE_SEM_WAIT
xbt_os_mutex_destroy(next_sem_ID_lock);
#endif
#ifndef HAVE_SEM_WAIT
xbt_os_mutex_destroy(next_sem_ID_lock);
#endif
+
+ /* Restore the default exception setup */
+ __xbt_ex_ctx = &__xbt_ex_ctx_default;
+ __xbt_ex_terminate = &__xbt_ex_terminate_default;
}
static void *wrapper_start_routine(void *s)
}
static void *wrapper_start_routine(void *s)