diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.cc b/src/main.cc index 35fc86e4..608aefac 100644 --- a/src/main.cc +++ b/src/main.cc @@ -897,6 +897,12 @@ void signal_handler(int signal) if (signal == SIGTERM) exit(-1); + else if (signal == SIGSEGV) + { + // generate core dump + ::signal(SIGSEGV, SIG_DFL); + kill(getpid(), SIGSEGV); + } else abort(); } |
