mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 01:23:03 +01:00
Fixed the Windows build.
This commit is contained in:
parent
7435a2de81
commit
1a70da9ff9
@ -95,6 +95,7 @@
|
||||
|
||||
#ifdef WIN_NT
|
||||
#include <process.h>
|
||||
#include <io.h>
|
||||
#define MUTEX &m_shmemMutex
|
||||
#define MUTEX_PTR NULL
|
||||
#else
|
||||
@ -1692,12 +1693,12 @@ void LockManager::bug(ISC_STATUS* status_vector, const TEXT* string)
|
||||
#ifdef DEV_BUILD
|
||||
/* In the worst case this code makes it possible to attach live process
|
||||
* and see shared memory data. */
|
||||
if (isatty(2))
|
||||
if (isatty(fileno(stderr)))
|
||||
fprintf(stderr, "Attach to pid=%d\n", getpid());
|
||||
else
|
||||
gds__log("Attach to pid=%d\n", getpid());
|
||||
sleep(120);
|
||||
/**/
|
||||
|
||||
THREAD_SLEEP(120);
|
||||
#endif
|
||||
|
||||
fb_utils::logAndDie(s);
|
||||
|
Loading…
Reference in New Issue
Block a user