aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1996-07-09 17:40:36 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1996-07-09 17:40:36 +0000
commitaf83607cd1f2657fd8085e7ae6585b5503891cb5 (patch)
tree11193f6db69cbd8a57d4a9d8f0e894b75496dfb6 /usr.sbin
parent7e2ea12650fe1af011f689a1e60dc0dde41d5ccd (diff)
Notes
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ppp/main.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c
index 5a01767ff544..8ae6c9f68622 100644
--- a/usr.sbin/ppp/main.c
+++ b/usr.sbin/ppp/main.c
@@ -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);
}