Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2010-02-24 11:03:44 +0300
committerChristopher Faylor <me@cgf.cx>2010-02-24 11:03:44 +0300
commitc6a6b5a3ac30a43a47aa86a36ef4feac6c34c0ce (patch)
tree3572195cd5a95701507b080e2bc404be737c9bb1 /winsup/cygwin/dlfcn.cc
parentfd4a56afe8f8cd8664d655c5cf04ef33d1695c78 (diff)
* dlfcn.cc (dlopen): Make sure exception handler is really loaded after dynamic
load.
Diffstat (limited to 'winsup/cygwin/dlfcn.cc')
-rw-r--r--winsup/cygwin/dlfcn.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/winsup/cygwin/dlfcn.cc b/winsup/cygwin/dlfcn.cc
index e62d74cb3..a1087dba2 100644
--- a/winsup/cygwin/dlfcn.cc
+++ b/winsup/cygwin/dlfcn.cc
@@ -109,6 +109,9 @@ dlopen (const char *name, int)
ret = (void *) LoadLibraryW (path);
+ /* In case it was removed by LoadLibrary. */
+ _my_tls.init_exception_handler (_cygtls::handle_exceptions);
+
/* Restore original cxx_malloc pointer. */
__cygwin_user_data.cxx_malloc = tmp_malloc;