Deleted Added
full compact
kern_exit.c (284343) kern_exit.c (284665)
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: stable/10/sys/kern/kern_exit.c 284343 2015-06-13 16:15:43Z jhb $");
38__FBSDID("$FreeBSD: stable/10/sys/kern/kern_exit.c 284665 2015-06-21 06:28:26Z trasz $");
39
40#include "opt_compat.h"
41#include "opt_kdtrace.h"
42#include "opt_ktrace.h"
43#include "opt_procdesc.h"
44
45#include <sys/param.h>
46#include <sys/systm.h>

--- 869 unchanged lines hidden (view full) ---

916 * Decrement the count of procs running with this uid.
917 */
918 (void)chgproccnt(p->p_ucred->cr_ruidinfo, -1, 0);
919
920 /*
921 * Destroy resource accounting information associated with the process.
922 */
923#ifdef RACCT
39
40#include "opt_compat.h"
41#include "opt_kdtrace.h"
42#include "opt_ktrace.h"
43#include "opt_procdesc.h"
44
45#include <sys/param.h>
46#include <sys/systm.h>

--- 869 unchanged lines hidden (view full) ---

916 * Decrement the count of procs running with this uid.
917 */
918 (void)chgproccnt(p->p_ucred->cr_ruidinfo, -1, 0);
919
920 /*
921 * Destroy resource accounting information associated with the process.
922 */
923#ifdef RACCT
924 PROC_LOCK(p);
925 racct_sub(p, RACCT_NPROC, 1);
926 PROC_UNLOCK(p);
924 if (racct_enable) {
925 PROC_LOCK(p);
926 racct_sub(p, RACCT_NPROC, 1);
927 PROC_UNLOCK(p);
928 }
927#endif
928 racct_proc_exit(p);
929
930 /*
931 * Free credentials, arguments, and sigacts.
932 */
933 crfree(p->p_ucred);
934 p->p_ucred = NULL;

--- 426 unchanged lines hidden ---
929#endif
930 racct_proc_exit(p);
931
932 /*
933 * Free credentials, arguments, and sigacts.
934 */
935 crfree(p->p_ucred);
936 p->p_ucred = NULL;

--- 426 unchanged lines hidden ---