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:
parent
71e7ae2217
commit
0952c7fec0
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user