summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_proc.c1
-rw-r--r--sys/sys/user.h3
2 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/kern_proc.c b/sys/kern/kern_proc.c
index d517863..f5b35c1 100644
--- a/sys/kern/kern_proc.c
+++ b/sys/kern/kern_proc.c
@@ -432,6 +432,7 @@ fill_kinfo_proc(p, kp)
kp->ki_mtxname[MTXNAMELEN] = 0;
}
kp->ki_stat = p->p_stat;
+ kp->ki_sflag = p->p_sflag;
kp->ki_pctcpu = p->p_pctcpu;
kp->ki_estcpu = p->p_estcpu;
kp->ki_slptime = p->p_slptime;
diff --git a/sys/sys/user.h b/sys/sys/user.h
index 5583839..0b31fcd 100644
--- a/sys/sys/user.h
+++ b/sys/sys/user.h
@@ -143,7 +143,8 @@ struct kinfo_proc {
char ki_sparestrings[102]; /* spare string space */
struct rtprio ki_rtprio; /* Realtime priority */
struct rusage ki_rusage; /* process rusage statistics */
- long ki_spare[25]; /* spare constants */
+ long ki_sflag; /* PS_* flags */
+ long ki_spare[24]; /* spare constants */
};
void fill_kinfo_proc __P((struct proc *, struct kinfo_proc *));
OpenPOWER on IntegriCloud