summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1998-09-06 19:48:39 +0000
committerkstailey <kstailey@cvs.openbsd.org>1998-09-06 19:48:39 +0000
commit3943a3a743419288cbed25efe44f723023079d24 (patch)
tree2f08dab62a89e9a21963632df4be3641c13b08fc /gnu
parent804fc607e93e7f2ec34398fb8e84610ceee73ff8 (diff)
handle ^C in traditional fashion
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/bc/bcwrap/bcwrap.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gnu/usr.bin/bc/bcwrap/bcwrap.c b/gnu/usr.bin/bc/bcwrap/bcwrap.c
index 489e2473b16..7426fa95d6a 100644
--- a/gnu/usr.bin/bc/bcwrap/bcwrap.c
+++ b/gnu/usr.bin/bc/bcwrap/bcwrap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bcwrap.c,v 1.5 1997/09/11 22:59:37 deraadt Exp $ */
+/* $OpenBSD: bcwrap.c,v 1.6 1998/09/06 19:48:38 kstailey Exp $ */
/*
* Copyright (c) 1996 Theo de Raadt <deraadt@theos.com>
@@ -44,9 +44,10 @@
#include <sys/types.h>
#include <sys/wait.h>
+#include <errno.h>
+#include <signal.h>
#include <stdio.h>
#include <unistd.h>
-#include <errno.h>
int
main(argc, argv)
@@ -67,6 +68,8 @@ main(argc, argv)
exit(1);
}
+ signal(SIGINT, SIG_IGN);
+
pid = fork();
switch(pid) {
case -1: