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)
{
{ bool waitForGDB=true; long long iSaidWaitBiatch = 100000000000L, i;
switch(sig) {
case SIGSEGV:
theseLogs->logN(0,"SEGV ABEND.");
if (waitForGDB) {
for (i = 0;i < iSaidWaitBiatch;i++);
}
exit(NOT_OK);
break;
case SIGUSR1: