kern_exit.c (215664) | kern_exit.c (220137) |
---|---|
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. --- 21 unchanged lines hidden (view full) --- 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)kern_exit.c 8.7 (Berkeley) 2/12/94 35 */ 36 37#include <sys/cdefs.h> | 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. --- 21 unchanged lines hidden (view full) --- 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)kern_exit.c 8.7 (Berkeley) 2/12/94 35 */ 36 37#include <sys/cdefs.h> |
38__FBSDID("$FreeBSD: head/sys/kern/kern_exit.c 215664 2010-11-22 09:06:59Z netchild $"); | 38__FBSDID("$FreeBSD: head/sys/kern/kern_exit.c 220137 2011-03-29 17:47:25Z trasz $"); |
39 40#include "opt_compat.h" 41#include "opt_kdtrace.h" 42#include "opt_ktrace.h" 43 44#include <sys/param.h> 45#include <sys/systm.h> 46#include <sys/sysproto.h> --- 4 unchanged lines hidden (view full) --- 51#include <sys/mutex.h> 52#include <sys/proc.h> 53#include <sys/pioctl.h> 54#include <sys/jail.h> 55#include <sys/tty.h> 56#include <sys/wait.h> 57#include <sys/vmmeter.h> 58#include <sys/vnode.h> | 39 40#include "opt_compat.h" 41#include "opt_kdtrace.h" 42#include "opt_ktrace.h" 43 44#include <sys/param.h> 45#include <sys/systm.h> 46#include <sys/sysproto.h> --- 4 unchanged lines hidden (view full) --- 51#include <sys/mutex.h> 52#include <sys/proc.h> 53#include <sys/pioctl.h> 54#include <sys/jail.h> 55#include <sys/tty.h> 56#include <sys/wait.h> 57#include <sys/vmmeter.h> 58#include <sys/vnode.h> |
59#include <sys/racct.h> |
|
59#include <sys/resourcevar.h> 60#include <sys/sbuf.h> 61#include <sys/signalvar.h> 62#include <sys/sched.h> 63#include <sys/sx.h> 64#include <sys/syscallsubr.h> 65#include <sys/syslog.h> 66#include <sys/ptrace.h> --- 669 unchanged lines hidden (view full) --- 736 PROC_UNLOCK(q); 737 738 /* 739 * Decrement the count of procs running with this uid. 740 */ 741 (void)chgproccnt(p->p_ucred->cr_ruidinfo, -1, 0); 742 743 /* | 60#include <sys/resourcevar.h> 61#include <sys/sbuf.h> 62#include <sys/signalvar.h> 63#include <sys/sched.h> 64#include <sys/sx.h> 65#include <sys/syscallsubr.h> 66#include <sys/syslog.h> 67#include <sys/ptrace.h> --- 669 unchanged lines hidden (view full) --- 737 PROC_UNLOCK(q); 738 739 /* 740 * Decrement the count of procs running with this uid. 741 */ 742 (void)chgproccnt(p->p_ucred->cr_ruidinfo, -1, 0); 743 744 /* |
745 * Destroy resource accounting information associated with the process. 746 */ 747 racct_proc_exit(p); 748 749 /* |
|
744 * Free credentials, arguments, and sigacts. 745 */ 746 crfree(p->p_ucred); 747 p->p_ucred = NULL; 748 pargs_drop(p->p_args); 749 p->p_args = NULL; 750 sigacts_free(p->p_sigacts); 751 p->p_sigacts = NULL; --- 157 unchanged lines hidden --- | 750 * Free credentials, arguments, and sigacts. 751 */ 752 crfree(p->p_ucred); 753 p->p_ucred = NULL; 754 pargs_drop(p->p_args); 755 p->p_args = NULL; 756 sigacts_free(p->p_sigacts); 757 p->p_sigacts = NULL; --- 157 unchanged lines hidden --- |