Module Name:    src
Committed By:   joerg
Date:           Tue May 24 18:18:22 UTC 2011

Modified Files:
        src/sys/kern: kern_kthread.c

Log Message:
Use a real panic as safe guard


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/sys/kern/kern_kthread.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/kern_kthread.c
diff -u src/sys/kern/kern_kthread.c:1.33 src/sys/kern/kern_kthread.c:1.34
--- src/sys/kern/kern_kthread.c:1.33	Thu May 19 03:07:29 2011
+++ src/sys/kern/kern_kthread.c	Tue May 24 18:18:22 2011
@@ -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");
 }
 
 /*

Reply via email to