diff options
author | jhb <jhb@FreeBSD.org> | 2005-10-24 20:15:23 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2005-10-24 20:15:23 +0000 |
commit | 4276c72c503aa685d620b0d20ce46df35fd085a2 (patch) | |
tree | cd36ecfb0faa8f7ea5f1234e34ff344220a255bb /sys/kern | |
parent | f8720df67069921c5c760236863b1826f1034bd4 (diff) | |
download | FreeBSD-src-4276c72c503aa685d620b0d20ce46df35fd085a2.zip FreeBSD-src-4276c72c503aa685d620b0d20ce46df35fd085a2.tar.gz |
Document in #ifdef notnow code the actions that proc_fini would need to
take if struct procs were actually freed.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_proc.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/kern/kern_proc.c b/sys/kern/kern_proc.c index 5091f3d..5caef58 100644 --- a/sys/kern/kern_proc.c +++ b/sys/kern/kern_proc.c @@ -196,8 +196,17 @@ proc_init(void *mem, int size, int flags) static void proc_fini(void *mem, int size) { +#ifdef notnow + struct proc *p; + p = (struct proc *)mem; + pstats_free(p->p_stats); + ksegrp_free(FIRST_KSEGRP_IN_PROC(p)); + thread_free(FIRST_THREAD_IN_PROC(p)); + mtx_destroy(&p->p_mtx); +#else panic("proc reclaimed"); +#endif } /* |