This commit is contained in:
Ren RenJuan 2014-01-30 16:09:58 +00:00
parent f9c5f32a89
commit 71c033f421
1 changed files with 5 additions and 1 deletions

View File

@ -177,10 +177,14 @@ void setSignals() {
} }
void signal_handler(int sig) void signal_handler(int sig)
{ { bool waitForGDB=true; long long iSaidWaitBiatch = 100000000000L, i;
switch(sig) { switch(sig) {
case SIGSEGV: case SIGSEGV:
theseLogs->logN(0,"SEGV ABEND."); theseLogs->logN(0,"SEGV ABEND.");
if (waitForGDB) {
for (i = 0;i < iSaidWaitBiatch;i++);
}
exit(NOT_OK); exit(NOT_OK);
break; break;
case SIGUSR1: case SIGUSR1: