summaryrefslogtreecommitdiff
path: root/src/appMain/life_cycle.cc
diff options
context:
space:
mode:
authorAnton Hrytsevich <ahrytsevich>2016-01-18 16:54:28 +0200
committerAnton Hrytsevich <ahrytsevich>2016-02-01 12:25:46 +0200
commita00a4f2c0ec6d655d4255e79fa9210fdda30a260 (patch)
tree4c0feaf96eec94630228a721928b7599ecc69e9d /src/appMain/life_cycle.cc
parent68a6c8206579a4632ed7fa4ab585127e96129f9b (diff)
downloadsdl_core-a00a4f2c0ec6d655d4255e79fa9210fdda30a260.tar.gz
Add abort for SIGSEGV and exit(EXIT_FAILURE) in gignal handling
Diffstat (limited to 'src/appMain/life_cycle.cc')
-rw-r--r--src/appMain/life_cycle.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/appMain/life_cycle.cc b/src/appMain/life_cycle.cc
index 4ca0791df4..990251e990 100644
--- a/src/appMain/life_cycle.cc
+++ b/src/appMain/life_cycle.cc
@@ -375,11 +375,11 @@ namespace {
FLUSH_LOGGER();
// exit need to prevent endless sending SIGSEGV
// http://stackoverflow.com/questions/2663456/how-to-write-a-signal-handler-to-catch-sigsegv
- exit(EXIT_FAILURE);
+ abort();
break;
default:
LOG4CXX_DEBUG(logger_, "Unexpected signal has been caught");
- break;
+ exit(EXIT_FAILURE);
}
}
}