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

Server-side fix for CORE-1820.

This commit is contained in:
dimitr 2008-04-04 09:04:42 +00:00
parent ecff2ebb9e
commit 3820731b0d
2 changed files with 4 additions and 0 deletions

View File

@ -254,6 +254,8 @@ int WINAPI WinMain(HINSTANCE hThisInst,
} }
#endif #endif
CreateMutex(ISC_get_security_desc(), FALSE, SERVER_MUTEX);
/* Initialize the service and /* Initialize the service and
Setup sig_mutex for the process Setup sig_mutex for the process
*/ */

View File

@ -34,6 +34,8 @@ static const char* ISCGUARD_SERVICE = "FirebirdGuardianDefaultInstance";
static const char* ISCGUARD_DISPLAY_NAME = "Firebird Guardian - DefaultInstance"; static const char* ISCGUARD_DISPLAY_NAME = "Firebird Guardian - DefaultInstance";
static const char* ISCGUARD_DISPLAY_DESCR = "Firebird Server Guardian - www.firebirdsql.org"; static const char* ISCGUARD_DISPLAY_DESCR = "Firebird Server Guardian - www.firebirdsql.org";
static const char* ISCGUARD_EXECUTABLE = "bin\\fbguard"; static const char* ISCGUARD_EXECUTABLE = "bin\\fbguard";
static const char* SERVER_MUTEX = "FirebirdServerMutex";
static const char* GUARDIAN_MUTEX = "FirebirdGuardianMutex"; static const char* GUARDIAN_MUTEX = "FirebirdGuardianMutex";
// Starting with 128 the service prams are user defined // Starting with 128 the service prams are user defined
const DWORD SERVICE_CREATE_GUARDIAN_MUTEX = 128; const DWORD SERVICE_CREATE_GUARDIAN_MUTEX = 128;