kern_fork.c (7757a1b4dc60696d9a95137ee0a2accd4ee680f4) | kern_fork.c (edf1796d3e1b7c2d22626eb1f723012eaa80c504) |
---|---|
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. --- 929 unchanged lines hidden (view full) --- 938 printf("maxproc limit exceeded by uid %u (pid %d); see tuning(7) and login.conf(5)\n", 939 td->td_ucred->cr_ruid, p1->p_pid); 940 sx_xunlock(&allproc_lock); 941#ifdef MAC 942 mac_proc_destroy(newproc); 943#endif 944 racct_proc_exit(newproc); 945fail1: | 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. --- 929 unchanged lines hidden (view full) --- 938 printf("maxproc limit exceeded by uid %u (pid %d); see tuning(7) and login.conf(5)\n", 939 td->td_ucred->cr_ruid, p1->p_pid); 940 sx_xunlock(&allproc_lock); 941#ifdef MAC 942 mac_proc_destroy(newproc); 943#endif 944 racct_proc_exit(newproc); 945fail1: |
946 crfree(proc_set_cred(newproc, NULL)); | 946 crfree(newproc->p_ucred); 947 newproc->p_ucred = NULL; |
947fail2: 948 if (vm2 != NULL) 949 vmspace_free(vm2); 950 uma_zfree(proc_zone, newproc); 951 if ((flags & RFPROCDESC) != 0 && fp_procdesc != NULL) { 952 fdclose(td, fp_procdesc, *procdescp); 953 fdrop(fp_procdesc, td); 954 } --- 105 unchanged lines hidden --- | 948fail2: 949 if (vm2 != NULL) 950 vmspace_free(vm2); 951 uma_zfree(proc_zone, newproc); 952 if ((flags & RFPROCDESC) != 0 && fp_procdesc != NULL) { 953 fdclose(td, fp_procdesc, *procdescp); 954 fdrop(fp_procdesc, td); 955 } --- 105 unchanged lines hidden --- |