summaryrefslogtreecommitdiff
path: root/usr.bin/tip/tip.c
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2004-11-07 09:48:09 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2004-11-07 09:48:09 +0000
commit221b664a9d19de48b68cbc473c347f139d548dfd (patch)
tree77cfcd2e8fd32f04afd33a094a2ce59c7e75946f /usr.bin/tip/tip.c
parent7503b54474a4b5087082e65fa2b496ebcfccab48 (diff)
Do not ignore SIGCHLD, repairing hangs after a subshell is executed
via ~! or ~C. While there, fix description of fd's available to the command executed by ~C in man page and comments. This has been wrong since at least 4.4BSD... Spotted by Hugo Villeneuve. PR 3971. ok and help millert@; ok deraadt@
Diffstat (limited to 'usr.bin/tip/tip.c')
-rw-r--r--usr.bin/tip/tip.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tip/tip.c b/usr.bin/tip/tip.c
index fbc0af68445..a12c5882fcd 100644
--- a/usr.bin/tip/tip.c
+++ b/usr.bin/tip/tip.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tip.c,v 1.23 2004/05/26 18:17:59 deraadt Exp $ */
+/* $OpenBSD: tip.c,v 1.24 2004/11/07 09:48:08 otto Exp $ */
/* $NetBSD: tip.c,v 1.13 1997/04/20 00:03:05 mellon Exp $ */
/*
@@ -40,7 +40,7 @@ static const char copyright[] =
#if 0
static char sccsid[] = "@(#)tip.c 8.1 (Berkeley) 6/6/93";
#endif
-static const char rcsid[] = "$OpenBSD: tip.c,v 1.23 2004/05/26 18:17:59 deraadt Exp $";
+static const char rcsid[] = "$OpenBSD: tip.c,v 1.24 2004/11/07 09:48:08 otto Exp $";
#endif /* not lint */
/*
@@ -138,7 +138,7 @@ notnumber:
(void)signal(SIGQUIT, cleanup);
(void)signal(SIGHUP, cleanup);
(void)signal(SIGTERM, cleanup);
- (void)signal(SIGCHLD, SIG_IGN);
+ (void)signal(SIGCHLD, SIG_DFL);
if ((i = hunt(system)) == 0) {
printf("all ports busy\n");