summaryrefslogtreecommitdiff
path: root/bin/dd
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1998-02-24 01:45:05 +0000
committerBruce Evans <bde@FreeBSD.org>1998-02-24 01:45:05 +0000
commit7eaa685e4114079dd795bc954178e34bd40f5240 (patch)
tree251b2327506cabe8b27a5c0a51e87b7081eca109 /bin/dd
parentabfb53239cd27607748751390a26dd7dce2e15da (diff)
Notes
Diffstat (limited to 'bin/dd')
-rw-r--r--bin/dd/misc.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/bin/dd/misc.c b/bin/dd/misc.c
index 72701504fb05..fcd5dd47ac62 100644
--- a/bin/dd/misc.c
+++ b/bin/dd/misc.c
@@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: misc.c,v 1.10 1997/12/15 20:37:43 eivind Exp $
+ * $Id: misc.c,v 1.11 1998/02/11 02:23:31 asami Exp $
*/
#ifndef lint
@@ -100,9 +100,10 @@ summaryx(notused)
/* ARGSUSED */
void
-terminate(notused)
- int notused;
+terminate(sig)
+ int sig;
{
- exit(0);
+ /* XXX exit() shouldn't call exit() from a signal handler. */
+ exit(sig == 0 ? 0 : 1);
}