Separate JS_ShutDown from the normal ScriptingHost shutdown, because it's resetting non-thread-safe per-process state.

DllLoader: Report dlerror when dlopen fails.
AtlasObject: Avoid ICC warnings caused by 'const T' being equivalent to
'T' when 'T' is already const.

This was SVN commit r5133.
This commit is contained in:
Ykkrosh
2007-06-03 15:37:26 +00:00
parent 48ae626a31
commit ecaf665d5a
8 changed files with 31 additions and 4 deletions
+6
View File
@@ -4,6 +4,7 @@
#include "lib/posix/posix_dlfcn.h"
#include "ps/CStr.h"
#include "ps/CLogger.h"
void* const HANDLE_UNAVAILABLE = (void*)-1;
@@ -65,7 +66,12 @@ bool DllLoader::LoadDLL()
// open failed (mostly likely SO not found)
if (! m_Handle)
{
char* error = dlerror();
if (error)
LOG(ERROR, "", "dlopen error: %s", error);
m_Handle = HANDLE_UNAVAILABLE;
}
}
return (m_Handle != HANDLE_UNAVAILABLE);