Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/kdump fix emul state tracking for exit vs exit_group...
details: https://anonhg.NetBSD.org/src/rev/83ac91010ea7
branches: trunk
changeset: 756969:83ac91010ea7
user: chs <chs%NetBSD.org@localhost>
date: Sun Aug 08 18:31:50 2010 +0000
description:
fix emul state tracking for exit vs exit_group on linux.
diffstat:
usr.bin/kdump/kdump.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r 3d73bb550e9d -r 83ac91010ea7 usr.bin/kdump/kdump.c
--- a/usr.bin/kdump/kdump.c Sun Aug 08 18:28:00 2010 +0000
+++ b/usr.bin/kdump/kdump.c Sun Aug 08 18:31:50 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kdump.c,v 1.104 2009/04/13 14:39:23 christos Exp $ */
+/* $NetBSD: kdump.c,v 1.105 2010/08/08 18:31:50 chs Exp $ */
/*-
* Copyright (c) 1988, 1993
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)kdump.c 8.4 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: kdump.c,v 1.104 2009/04/13 14:39:23 christos Exp $");
+__RCSID("$NetBSD: kdump.c,v 1.105 2010/08/08 18:31:50 chs Exp $");
#endif
#endif /* not lint */
@@ -532,7 +532,10 @@
if (plain) {
;
- } else if (strcmp(sys_name, "exit") == 0) {
+ } else if (strcmp(sys_name, "exit_group") == 0 ||
+ (strcmp(emul->name, "linux") != 0 &&
+ strcmp(emul->name, "linux32") != 0 &&
+ strcmp(sys_name, "exit") == 0)) {
ectx_delete();
} else if (strcmp(sys_name, "ioctl") == 0 && argcount >= 2) {
Home |
Main Index |
Thread Index |
Old Index