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.21:
details: https://anonhg.NetBSD.org/src/rev/27fc78150a21
branches: netbsd-1-4
changeset: 468342:27fc78150a21
user: mycroft <mycroft%NetBSD.org@localhost>
date: Mon Apr 19 04:08:30 1999 +0000
description:
Pull up rev 1.21:
If we exit due to a SIGINT, do it with raise() so that the wait status is
correct in the parent.
diffstat:
bin/sh/error.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (31 lines):
diff -r 730dcce9ce37 -r 27fc78150a21 bin/sh/error.c
--- a/bin/sh/error.c Mon Apr 19 04:07:53 1999 +0000
+++ b/bin/sh/error.c Mon Apr 19 04:08:30 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: error.c,v 1.20 1998/07/28 11:41:52 mycroft Exp $ */
+/* $NetBSD: error.c,v 1.20.2.1 1999/04/19 04:08:30 mycroft Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)error.c 8.2 (Berkeley) 5/4/95";
#else
-__RCSID("$NetBSD: error.c,v 1.20 1998/07/28 11:41:52 mycroft Exp $");
+__RCSID("$NetBSD: error.c,v 1.20.2.1 1999/04/19 04:08:30 mycroft Exp $");
#endif
#endif /* not lint */
@@ -114,8 +114,10 @@
sigprocmask(SIG_SETMASK, &sigset, NULL);
if (rootshell && iflag)
exraise(EXINT);
- else
- _exit(128 + SIGINT);
+ else {
+ signal(SIGINT, SIG_DFL);
+ raise(SIGINT);
+ }
/* NOTREACHED */
}
Home |
Main Index |
Thread Index |
Old Index