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

Server-side fix for CORE-1820.

This commit is contained in:
dimitr 2008-04-04 09:09:56 +00:00
parent 2760eb936f
commit f4ca8c6913
2 changed files with 5 additions and 0 deletions

View File

@ -250,6 +250,10 @@ int WINAPI WinMain(HINSTANCE hThisInst,
}
#endif
Firebird::string mutex_name;
mutex_name.printf(SERVER_MUTEX, instance);
CreateMutex(ISC_get_security_desc(), FALSE, mutex_name.c_str());
/* Initialize the service and
Setup sig_mutex for the process
*/

View File

@ -35,6 +35,7 @@ static const char* ISCGUARD_DISPLAY_NAME = "Firebird Guardian - %s";
static const char* ISCGUARD_DISPLAY_DESCR = "Firebird Server Guardian - www.firebirdsql.org";
static const char* ISCGUARD_EXECUTABLE = "bin\\fbguard";
static const char* SERVER_MUTEX = "FirebirdServerMutex%s";
static const char* GUARDIAN_MUTEX = "FirebirdGuardianMutex%s";
static const char* FB_DEFAULT_INSTANCE = "DefaultInstance";