Project

General

Profile

Bug #827 ยป zombie-remove.diff

corecode, 01/08/2008 12:25 AM

View differences:

kern/kern_exit.c 8 Jan 2008 00:06:01 -0000
p->p_usched->heuristic_exiting(td->td_lwp, deadlp);
*/
/*
* Finally finished with old proc entry.
* Unlink it from its process group and free it.
*/
proc_remove_zombie(p);
leavepgrp(p);
/* Take care of our return values. */
*res = p->p_pid;
if (status)
......
if (p->p_args && --p->p_args->ar_ref == 0)
FREE(p->p_args, M_PARGS);
/*
* Finally finished with old proc entry.
* Unlink it from its process group and free it.
*/
proc_remove_zombie(p);
leavepgrp(p);
if (--p->p_sigacts->ps_refcnt == 0) {
kfree(p->p_sigacts, M_SUBPROC);
p->p_sigacts = NULL;
    (1-1/1)