mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
Dump core on SIGSEGV instead of silent exiting. I saw SIGSEGV few times,
but they are VERY rare to tracking down this bug. I hope core helps to track it down.
This commit is contained in:
parent
7e2ea12650
commit
af83607cd1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=17044
@ -17,7 +17,7 @@
|
||||
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
||||
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
* $Id: main.c,v 1.18 1996/04/13 15:47:34 bde Exp $
|
||||
* $Id: main.c,v 1.19 1996/05/11 20:48:34 phk Exp $
|
||||
*
|
||||
* TODO:
|
||||
* o Add commands for traffic summary, version display, etc.
|
||||
@ -170,6 +170,11 @@ static void
|
||||
Hangup(signo)
|
||||
int signo;
|
||||
{
|
||||
if (signo == SIGSEGV) {
|
||||
LogPrintf(LOG_PHASE_BIT, "Signal %d, core dump.\n", signo);
|
||||
LogClose();
|
||||
abort();
|
||||
}
|
||||
LogPrintf(LOG_PHASE_BIT, "Signal %d, hangup.\n", signo);
|
||||
Cleanup(EX_HANGUP);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user