Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/bin/sh Pull up rev 1.30:
details: https://anonhg.NetBSD.org/src/rev/730dcce9ce37
branches: netbsd-1-4
changeset: 468341:730dcce9ce37
user: mycroft <mycroft%NetBSD.org@localhost>
date: Mon Apr 19 04:07:53 1999 +0000
description:
Pull up rev 1.30:
Disable bogus-looking code that cause us to throw away SIGINTs.
diffstat:
bin/sh/jobs.c | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
diffs (37 lines):
diff -r 878729ef4bd1 -r 730dcce9ce37 bin/sh/jobs.c
--- a/bin/sh/jobs.c Mon Apr 19 04:04:02 1999 +0000
+++ b/bin/sh/jobs.c Mon Apr 19 04:07:53 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: jobs.c,v 1.29 1999/02/04 16:17:39 christos Exp $ */
+/* $NetBSD: jobs.c,v 1.29.2.1 1999/04/19 04:07:53 mycroft Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)jobs.c 8.5 (Berkeley) 5/4/95";
#else
-__RCSID("$NetBSD: jobs.c,v 1.29 1999/02/04 16:17:39 christos Exp $");
+__RCSID("$NetBSD: jobs.c,v 1.29.2.1 1999/04/19 04:07:53 mycroft Exp $");
#endif
#endif /* not lint */
@@ -732,9 +732,17 @@
st = WTERMSIG(status) + 128;
if (! JOBS || jp->state == JOBDONE)
freejob(jp);
+#if 0
+ /*
+ * XXXX
+ * Why was this here? It causes us to lose SIGINTs unless the current
+ * command happens to also catch the SIGINT and exit with the right
+ * status. I don't see how that can possibly be correct. -- mycroft
+ */
CLEAR_PENDING_INT;
if (WIFSIGNALED(status) && WTERMSIG(status) == SIGINT)
- kill(getpid(), SIGINT);
+ raise(SIGINT);
+#endif
INTON;
return st;
}
Home |
Main Index |
Thread Index |
Old Index