Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Report L_INMEM in the lwp info as well.



details:   https://anonhg.NetBSD.org/src/rev/2cc56282b933
branches:  trunk
changeset: 749914:2cc56282b933
user:      dsl <dsl%NetBSD.org@localhost>
date:      Sat Dec 12 17:29:34 2009 +0000

description:
Report L_INMEM in the lwp info as well.

diffstat:

 sys/kern/init_sysctl.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 22b43d84b6c1 -r 2cc56282b933 sys/kern/init_sysctl.c
--- a/sys/kern/init_sysctl.c    Sat Dec 12 17:10:19 2009 +0000
+++ b/sys/kern/init_sysctl.c    Sat Dec 12 17:29:34 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: init_sysctl.c,v 1.169 2009/12/12 17:03:19 dsl Exp $ */
+/*     $NetBSD: init_sysctl.c,v 1.170 2009/12/12 17:29:34 dsl Exp $ */
 
 /*-
  * Copyright (c) 2003, 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: init_sysctl.c,v 1.169 2009/12/12 17:03:19 dsl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: init_sysctl.c,v 1.170 2009/12/12 17:29:34 dsl Exp $");
 
 #include "opt_sysv.h"
 #include "opt_compat_netbsd32.h"
@@ -3051,7 +3051,8 @@
        kl->l_addr = PTRTOUINT64(l->l_addr);
        kl->l_stat = l->l_stat;
        kl->l_lid = l->l_lid;
-       kl->l_flag = sysctl_map_flags(sysctl_lwpprflagmap, l->l_prflag);
+       kl->l_flag = L_INMEM;
+       kl->l_flag |= sysctl_map_flags(sysctl_lwpprflagmap, l->l_prflag);
        kl->l_flag |= sysctl_map_flags(sysctl_lwpflagmap, l->l_flag);
 
        kl->l_swtime = l->l_swtime;



Home | Main Index | Thread Index | Old Index