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

Server-side fix for CORE-1820.

This commit is contained in:
dimitr 2008-04-04 09:17:17 +00:00
parent ac730b43ac
commit 1c343cbadc
2 changed files with 7 additions and 3 deletions

View File

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

View File

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