Module Name: src
Committed By: ad
Date: Sat Jun 6 22:26:47 UTC 2020
Modified Files:
src/sys/kern: kern_lwp.c
Log Message:
lwp_exit(): add a warning about (l != curlwp)
To generate a diff of this commit:
cvs rdiff -u -r1.240 -r1.241 src/sys/kern/kern_lwp.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_lwp.c
diff -u src/sys/kern/kern_lwp.c:1.240 src/sys/kern/kern_lwp.c:1.241
--- src/sys/kern/kern_lwp.c:1.240 Mon Jun 1 13:58:14 2020
+++ src/sys/kern/kern_lwp.c Sat Jun 6 22:26:47 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_lwp.c,v 1.240 2020/06/01 13:58:14 thorpej Exp $ */
+/* $NetBSD: kern_lwp.c,v 1.241 2020/06/06 22:26:47 ad Exp $ */
/*-
* Copyright (c) 2001, 2006, 2007, 2008, 2009, 2019, 2020
@@ -217,7 +217,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_lwp.c,v 1.240 2020/06/01 13:58:14 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_lwp.c,v 1.241 2020/06/06 22:26:47 ad Exp $");
#include "opt_ddb.h"
#include "opt_lockdebug.h"
@@ -1054,6 +1054,8 @@ lwp_startup(struct lwp *prev, struct lwp
/*
* Exit an LWP.
+ *
+ * *** WARNING *** This can be called with (l != curlwp) in error paths.
*/
void
lwp_exit(struct lwp *l)