diff --git a/sphinx/src/searchd.cpp b/sphinx/src/searchd.cpp index a845add..95fcd64 100644 --- a/sphinx/src/searchd.cpp +++ b/sphinx/src/searchd.cpp @@ -1745,8 +1745,11 @@ LONG WINAPI SphCrashLogger_c::HandleCrash ( EXCEPTION_POINTERS * pExc ) #if !USE_WINDOWS sphSafeInfo ( g_iLogFile, "Handling signal %d", sig ); // print message to stdout during daemon start - if ( g_bLogStdout && g_iLogFile!=STDOUT_FILENO ) + if ( g_bLogStdout && g_iLogFile!=STDOUT_FILENO ) { sphSafeInfo ( STDOUT_FILENO, "Crash!!! Handling signal %d", sig ); + sphSafeInfo ( STDOUT_FILENO, "Immediately exiting due possible hungup in sphBacktrace()" ); + CRASH_EXIT; + } sphBacktrace ( g_iLogFile, g_bSafeTrace ); #else sphBacktrace ( pExc, (char *)g_dCrashQueryBuff );