zombie-remove.diff

corecode, 01/08/2008 12:25 AM

Download (1013 Bytes)

View differences:

kern/kern_exit.c 8 Jan 2008 00:06:01 -0000
769 769
			p->p_usched->heuristic_exiting(td->td_lwp, deadlp);
770 770
			*/
771 771

  
772
			/*
773
			 * Finally finished with old proc entry.
774
			 * Unlink it from its process group and free it.
775
			 */
776
			proc_remove_zombie(p);
777
			leavepgrp(p);
778

  
772 779
			/* Take care of our return values. */
773 780
			*res = p->p_pid;
774 781
			if (status)
......
806 813
			if (p->p_args && --p->p_args->ar_ref == 0)
807 814
				FREE(p->p_args, M_PARGS);
808 815

  
809
			/*
810
			 * Finally finished with old proc entry.
811
			 * Unlink it from its process group and free it.
812
			 */
813
			proc_remove_zombie(p);
814
			leavepgrp(p);
815

  
816 816
			if (--p->p_sigacts->ps_refcnt == 0) {
817 817
				kfree(p->p_sigacts, M_SUBPROC);
818 818
				p->p_sigacts = NULL;