Check the number of plugins still loaded at shutdown, newer glibc sucks badly!
Warn if at shutdown there are mutexes locked or plugins loaded. git-svn-id: http://yate.null.ro/svn/yate/trunk@4587 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
87ade157b6
commit
152d0fb013
|
@ -1008,7 +1008,6 @@ Engine::~Engine()
|
||||||
assert(this == s_self);
|
assert(this == s_self);
|
||||||
m_dispatcher.clear();
|
m_dispatcher.clear();
|
||||||
m_libs.clear();
|
m_libs.clear();
|
||||||
plugins.clear();
|
|
||||||
s_mode = Stopped;
|
s_mode = Stopped;
|
||||||
s_self = 0;
|
s_self = 0;
|
||||||
}
|
}
|
||||||
|
@ -1241,7 +1240,11 @@ int Engine::run()
|
||||||
::signal(SIGQUIT,SIG_DFL);
|
::signal(SIGQUIT,SIG_DFL);
|
||||||
#endif
|
#endif
|
||||||
delete this;
|
delete this;
|
||||||
Debug(DebugAll,"Exiting with %d locked mutexes",Mutex::locks());
|
int mux = Mutex::locks();
|
||||||
|
unsigned int cnt = plugins.count();
|
||||||
|
plugins.clear();
|
||||||
|
if (mux || cnt)
|
||||||
|
Debug(DebugGoOn,"Exiting with %d locked mutexes and %u plugins loaded!",mux,cnt);
|
||||||
#ifdef _WINDOWS
|
#ifdef _WINDOWS
|
||||||
::WSACleanup();
|
::WSACleanup();
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue