diff options
author | 1998-09-06 19:48:38 +0000 | |
---|---|---|
committer | 1998-09-06 19:48:38 +0000 | |
commit | fac4263ce4af08b493218ee0128198cd2feea4ca (patch) | |
tree | b424cf962338a2a462aff87ddcbe609baaa9af3c | |
parent | Add a compuserve example. (diff) | |
download | wireguard-openbsd-fac4263ce4af08b493218ee0128198cd2feea4ca.tar.xz wireguard-openbsd-fac4263ce4af08b493218ee0128198cd2feea4ca.zip |
handle ^C in traditional fashion
-rw-r--r-- | gnu/usr.bin/bc/bcwrap/bcwrap.c | 7 |
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: |