diff options
| author | elad <elad@NetBSD.org> | 2006-10-03 11:23:32 +0000 |
|---|---|---|
| committer | elad <elad@NetBSD.org> | 2006-10-03 11:23:32 +0000 |
| commit | f346fbdce9619ca035e5ecd09ea0c5f4bd8eacec (patch) | |
| tree | 6e37437930535d0332fc2e280dc3c6b2498f025a /sys | |
| parent | b4da713cf5e18811d1f658f031c5bef1708f634e (diff) | |
Until we figure out the Perfect Way of adding flags to processes, add
a p_flag2. No objections on tech-kern@.
Input from simonb@, thanks!
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/kern/init_sysctl.c | 5 | ||||
| -rw-r--r-- | sys/sys/proc.h | 3 | ||||
| -rw-r--r-- | sys/sys/sysctl.h | 5 |
3 files changed, 9 insertions, 4 deletions
diff --git a/sys/kern/init_sysctl.c b/sys/kern/init_sysctl.c index fe48967afe4..a8a4466f85f 100644 --- a/sys/kern/init_sysctl.c +++ b/sys/kern/init_sysctl.c @@ -1,4 +1,4 @@ -/* $NetBSD: init_sysctl.c,v 1.87 2006/09/24 05:46:14 dogcow Exp $ */ +/* $NetBSD: init_sysctl.c,v 1.88 2006/10/03 11:23:32 elad Exp $ */ /*- * Copyright (c) 2003 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: init_sysctl.c,v 1.87 2006/09/24 05:46:14 dogcow Exp $"); +__KERNEL_RCSID(0, "$NetBSD: init_sysctl.c,v 1.88 2006/10/03 11:23:32 elad Exp $"); #include "opt_sysv.h" #include "opt_multiprocessor.h" @@ -2927,6 +2927,7 @@ fill_kproc2(struct proc *p, struct kinfo_proc2 *ki) ki->p_eflag = 0; ki->p_exitsig = p->p_exitsig; ki->p_flag = p->p_flag; + ki->p_flag2 = p->p_flag2; ki->p_pid = p->p_pid; if (p->p_pptr) diff --git a/sys/sys/proc.h b/sys/sys/proc.h index eb34740bee4..028a73d8a25 100644 --- a/sys/sys/proc.h +++ b/sys/sys/proc.h @@ -1,4 +1,4 @@ -/* $NetBSD: proc.h,v 1.225 2006/07/30 21:58:11 ad Exp $ */ +/* $NetBSD: proc.h,v 1.226 2006/10/03 11:23:32 elad Exp $ */ /*- * Copyright (c) 1986, 1989, 1991, 1993 @@ -185,6 +185,7 @@ struct proc { int p_exitsig; /* signal to send to parent on exit */ int p_flag; /* P_* flags. */ + int p_flag2; /* second batch of P_* flags. */ char p_stat; /* S* process status. */ char p_pad1[3]; diff --git a/sys/sys/sysctl.h b/sys/sys/sysctl.h index 75ed7c50e07..66fd6406d79 100644 --- a/sys/sys/sysctl.h +++ b/sys/sys/sysctl.h @@ -1,4 +1,4 @@ -/* $NetBSD: sysctl.h,v 1.157 2006/09/08 20:58:58 elad Exp $ */ +/* $NetBSD: sysctl.h,v 1.158 2006/10/03 11:23:32 elad Exp $ */ /* * Copyright (c) 1989, 1993 @@ -561,6 +561,9 @@ struct kinfo_proc2 { uint64_t p_realstat; /* LONG: non-LWP process status */ uint32_t p_svuid; /* UID_T: saved user id */ uint32_t p_svgid; /* GID_T: saved group id */ + + int32_t p_flag2; /* INT: second batch of P_* flags */ + int32_t p_pad; /* INT: unused, free for use */ }; /* |
