Subject: Re: kern/32809: spurious 'x' flag in ps output
To: None <pavel@netbsd.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org,>
From: Pavel Cahyna <pcah8322@artax.karlin.mff.cuni.cz>
List: netbsd-bugs
Date: 03/21/2006 14:10:02
The following reply was made to PR kern/32809; it has been noted by GNATS.

From: Pavel Cahyna <pcah8322@artax.karlin.mff.cuni.cz>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/32809: spurious 'x' flag in ps output
Date: Tue, 21 Mar 2006 15:06:21 +0100

 > No wonder it does happen - fill_kproc2 in init_sysctl.c does
 >  		ki->p_flag |= l->l_flag;    
 > 
 > but l_flag values conflict with p_flag values. ps should use p_realflag.
 > (It seems that there was an effort to keep the flag spaces disjoint, but
 > it was abandoned for higher flags.)
 
 Actually ps does not have to use p_realflag, instead only those l_flags
 which make sense as p_flags should be copied. (those are the flags which
 moved from proc.h to lwp.h when nathanw_sa was merged.)