diff --git a/bin/dd/misc.c b/bin/dd/misc.c index 41193397cd9e..be9fd663797a 100644 --- a/bin/dd/misc.c +++ b/bin/dd/misc.c @@ -1,4 +1,4 @@ -/* $NetBSD: misc.c,v 1.19 2004/01/17 20:48:57 dbj Exp $ */ +/* $NetBSD: misc.c,v 1.20 2007/07/03 05:25:25 lukem Exp $ */ /*- * Copyright (c) 1991, 1993, 1994 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)misc.c 8.3 (Berkeley) 4/2/94"; #else -__RCSID("$NetBSD: misc.c,v 1.19 2004/01/17 20:48:57 dbj Exp $"); +__RCSID("$NetBSD: misc.c,v 1.20 2007/07/03 05:25:25 lukem Exp $"); #endif #endif /* not lint */ @@ -47,6 +47,7 @@ __RCSID("$NetBSD: misc.c,v 1.19 2004/01/17 20:48:57 dbj Exp $"); #include #include +#include #include #include #include @@ -115,9 +116,11 @@ summaryx(int notused) /* ARGSUSED */ void -terminate(int notused) +terminate(int signo) { - exit(0); + summary(); + (void)signal(signo, SIG_DFL); + raise(signo); /* NOTREACHED */ }