Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Use a real panic as safe guard
details: https://anonhg.NetBSD.org/src/rev/1a932240fad3
branches: trunk
changeset: 765376:1a932240fad3
user: joerg <joerg%NetBSD.org@localhost>
date: Tue May 24 18:18:22 2011 +0000
description:
Use a real panic as safe guard
diffstat:
sys/kern/kern_kthread.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 7a8532b173ba -r 1a932240fad3 sys/kern/kern_kthread.c
--- a/sys/kern/kern_kthread.c Tue May 24 18:17:24 2011 +0000
+++ b/sys/kern/kern_kthread.c Tue May 24 18:18:22 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_kthread.c,v 1.33 2011/05/19 03:07:29 rmind Exp $ */
+/* $NetBSD: kern_kthread.c,v 1.34 2011/05/24 18:18:22 joerg Exp $ */
/*-
* Copyright (c) 1998, 1999, 2007, 2009 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_kthread.c,v 1.33 2011/05/19 03:07:29 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_kthread.c,v 1.34 2011/05/24 18:18:22 joerg Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -183,7 +183,7 @@
/* And exit.. */
lwp_exit(l);
- KASSERT(false);
+ panic("kthread_exit");
}
/*
Home |
Main Index |
Thread Index |
Old Index