about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-12-18 17:14:04 +0100
committerptitSeb <sebastien.chev@gmail.com>2024-12-18 17:14:04 +0100
commitf80886fd68893b82196cd9bd0f3faa36436e1b22 (patch)
tree4c62d65f6fa5c32e70b7dbd1f662c1a0957806a0 /src
parentcbe7ced335719c67fd1b6294c048d4b36a39efb3 (diff)
downloadbox64-f80886fd68893b82196cd9bd0f3faa36436e1b22.tar.gz
box64-f80886fd68893b82196cd9bd0f3faa36436e1b22.zip
[ELFLOADER] Do not fornul dlclose remaining libs at exit, just lest dependancies do the unload (help gogdl and nile)
Diffstat (limited to 'src')
-rw-r--r--src/core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core.c b/src/core.c
index 3de773cc..a096cc8b 100644
--- a/src/core.c
+++ b/src/core.c
@@ -1775,9 +1775,9 @@ void endBox64()
     printf_log(LOG_DEBUG, "Calling atexit registered functions (exiting box64)\n");
     CallAllCleanup(emu);
     printf_log(LOG_DEBUG, "Calling fini for all loaded elfs and unload native libs\n");
+    //void closeAllDLOpenned();
+    //closeAllDLOpenned();    // close residual dlopenned libs. Disabled, seems like a bad idea, better to unload with proper dependancies
     RunElfFini(my_context->elfs[0], emu);
-    void closeAllDLOpenned();
-    closeAllDLOpenned();    // close residual dlopenned libs
     // unload needed libs
     needed_libs_t* needed = my_context->elfs[0]->needed;
     printf_log(LOG_DEBUG, "Unloaded main elf: Will Dec RefCount of %d libs\n", needed?needed->size:0);