mirror of https://gitee.com/bigwinds/arangodb
Add signal handler.
This commit is contained in:
parent
f02de55304
commit
154882ae5f
|
@ -108,6 +108,7 @@ static void TRI_GlobalEntryFunction () {
|
|||
int maxOpenFiles = 2048; // upper hard limit for windows
|
||||
int res = 0;
|
||||
|
||||
|
||||
// Uncomment this to call this for extended debug information.
|
||||
// If you familiar with valgrind ... then this is not like that, however
|
||||
// you do get some similar functionality.
|
||||
|
@ -420,6 +421,8 @@ int main (int argc, char* argv[]) {
|
|||
int res = 0;
|
||||
bool startAsService = false;
|
||||
|
||||
signal(SIGSEGV, abortHandler);
|
||||
|
||||
#ifdef _WIN32
|
||||
|
||||
if (1 < argc) {
|
||||
|
|
Loading…
Reference in New Issue