8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 22:03:03 +01:00

Avoid running too parallel fb_shutdown() API calls

This commit is contained in:
alexpeshkoff 2008-10-07 08:00:27 +00:00
parent 71e7ae2217
commit 0952c7fec0

View File

@ -5992,6 +5992,8 @@ bool WHY_get_shutdown()
#endif // !SUPERCLIENT
static GlobalPtr<Mutex> singleShutdown;
int API_ROUTINE fb_shutdown(unsigned int timeout, const int reason)
{
/**************************************
@ -6004,6 +6006,8 @@ int API_ROUTINE fb_shutdown(unsigned int timeout, const int reason)
* Shutdown firebird.
*
**************************************/
MutexLockGuard guard(singleShutdown);
YEntry status(NULL);
int rc = FB_SUCCESS;