clarify description for LWP_WSTOP

Aggelos Economopoulos aoiko at cc.ece.ntua.gr
Thu Dec 6 07:38:40 PST 2007


Inspired by the fix for issue 761
(http://bugs.dragonflybsd.org/issue761).

Discussed-with: Simon 'corecode' Schubert <corecode at fs.ei.tum.de>

Index: sys/sys/proc.h
===================================================================
retrieving revision 1.114
diff -u -r1.114 proc.h
--- sys/sys/proc.h
+++ sys/sys/proc.h
@@ -37,7 +37,7 @@
  *
  *	@(#)proc.h	8.15 (Berkeley) 5/19/95
  * $FreeBSD: src/sys/sys/proc.h,v 1.99.2.9 2003/06/06 20:21:32 tegge Exp $
- * $DragonFly: src/sys/sys/proc.h,v 1.114 2007-08-30 20:41:00 pavalos Exp $
+ * $DragonFly: src/sys/sys/proc.h,v 1.114 2007/08/30 20:41:00 pavalos Exp $
  */
 
 #ifndef _SYS_PROC_H_
@@ -363,7 +363,7 @@
 #define LWP_SELECT	0x0000010 /* Selecting; wakeup/waiting danger. */
 #define	LWP_ONRUNQ	0x0000020 /* on a user scheduling run queue */
 #define	LWP_WEXIT	0x0000040 /* working on exiting */
-#define	LWP_WSTOP	0x0000080 /* working on stopping */
+#define	LWP_WSTOP	0x0000080 /* has been counted in the process stopped-threads-count */
 
 #define	FIRST_LWP_IN_PROC(p)		RB_FIRST(lwp_rb_tree, &(p)->p_lwp_tree)
 #define	FOREACH_LWP_IN_PROC(lp, p)	\





More information about the Submit mailing list