diff options
Diffstat (limited to 'winsup/cygwin/dlfcn.cc')
-rw-r--r-- | winsup/cygwin/dlfcn.cc | 3 |
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; |