Skip to content

Commit

Permalink
re-fixed fixed broken windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
klirichek committed Jul 18, 2017
1 parent a2158d8 commit 7d8cd87
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/searchd.cpp
Expand Up @@ -1672,6 +1672,17 @@ LONG WINAPI SphCrashLogger_c::HandleCrash ( EXCEPTION_POINTERS * pExc )

sphSafeInfo ( g_iLogFile, "Sphinx " SPHINX_VERSION );

// log trace
#if !USE_WINDOWS
sphSafeInfo ( g_iLogFile, "Handling signal %d", sig );
// print message to stdout during daemon start
if ( g_bLogStdout && g_iLogFile!=STDOUT_FILENO )
sphSafeInfo ( STDOUT_FILENO, "Crash!!! Handling signal %d", sig );
sphBacktrace ( g_iLogFile, g_bSafeTrace );
#else
sphBacktrace ( pExc, (char *)g_dCrashQueryBuff );
#endif

// log query
CrashQuery_t tQuery = SphCrashLogger_c::GetQuery ();

Expand All @@ -1684,17 +1695,6 @@ LONG WINAPI SphCrashLogger_c::HandleCrash ( EXCEPTION_POINTERS * pExc )
g_sMinidump, tQuery.m_pQuery );
#endif

// log trace
#if !USE_WINDOWS
sphSafeInfo ( g_iLogFile, "Handling signal %d", sig );
// print message to stdout during daemon start
if ( g_bLogStdout && g_iLogFile!=STDOUT_FILENO )
sphSafeInfo ( STDOUT_FILENO, "Crash!!! Handling signal %d", sig );
sphBacktrace ( g_iLogFile, g_bSafeTrace );
#else
sphBacktrace ( pExc, (char *)g_dCrashQueryBuff );
#endif

// threads table
// FIXME? should we try to lock threads table somehow?
sphSafeInfo ( g_iLogFile, "--- %d active threads ---", g_dThd.GetLength () );
Expand Down

0 comments on commit 7d8cd87

Please sign in to comment.