kern_exit.c (47829) | kern_exit.c (50465) |
---|---|
1/* 2 * Copyright (c) 1982, 1986, 1989, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)kern_exit.c 8.7 (Berkeley) 2/12/94 | 1/* 2 * Copyright (c) 1982, 1986, 1989, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)kern_exit.c 8.7 (Berkeley) 2/12/94 |
39 * $Id: kern_exit.c,v 1.80 1999/04/28 11:36:52 phk Exp $ | 39 * $Id: kern_exit.c,v 1.81 1999/06/07 20:37:29 msmith Exp $ |
40 */ 41 42#include "opt_compat.h" 43#include "opt_ktrace.h" 44 45#include <sys/param.h> 46#include <sys/systm.h> 47#include <sys/sysproto.h> --- 455 unchanged lines hidden (view full) --- 503 crfree(p->p_cred->pc_ucred); 504 FREE(p->p_cred, M_SUBPROC); 505 p->p_cred = NULL; 506 } 507 508 /* 509 * Destroy empty prisons 510 */ | 40 */ 41 42#include "opt_compat.h" 43#include "opt_ktrace.h" 44 45#include <sys/param.h> 46#include <sys/systm.h> 47#include <sys/sysproto.h> --- 455 unchanged lines hidden (view full) --- 503 crfree(p->p_cred->pc_ucred); 504 FREE(p->p_cred, M_SUBPROC); 505 p->p_cred = NULL; 506 } 507 508 /* 509 * Destroy empty prisons 510 */ |
511 if (p->p_prison && !--p->p_prison->pr_ref) | 511 if (p->p_prison && !--p->p_prison->pr_ref) { 512 if (p->p_prison->pr_linux != NULL) 513 FREE(p->p_prison->pr_linux, M_PRISON); |
512 FREE(p->p_prison, M_PRISON); | 514 FREE(p->p_prison, M_PRISON); |
515 } |
|
513 514 /* 515 * Finally finished with old proc entry. 516 * Unlink it from its process group and free it. 517 */ 518 leavepgrp(p); 519 LIST_REMOVE(p, p_list); /* off zombproc */ 520 LIST_REMOVE(p, p_sibling); --- 136 unchanged lines hidden --- | 516 517 /* 518 * Finally finished with old proc entry. 519 * Unlink it from its process group and free it. 520 */ 521 leavepgrp(p); 522 LIST_REMOVE(p, p_list); /* off zombproc */ 523 LIST_REMOVE(p, p_sibling); --- 136 unchanged lines hidden --- |