kern_fork.c (232240) | kern_fork.c (235787) |
---|---|
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_fork.c 8.6 (Berkeley) 4/8/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_fork.c 8.6 (Berkeley) 4/8/94 35 */ 36 37#include <sys/cdefs.h> |
38__FBSDID("$FreeBSD: head/sys/kern/kern_fork.c 232240 2012-02-27 21:10:10Z kib $"); | 38__FBSDID("$FreeBSD: head/sys/kern/kern_fork.c 235787 2012-05-22 15:58:27Z trasz $"); |
39 40#include "opt_kdtrace.h" 41#include "opt_ktrace.h" 42#include "opt_kstack_pages.h" 43#include "opt_procdesc.h" 44 45#include <sys/param.h> 46#include <sys/systm.h> --- 887 unchanged lines hidden (view full) --- 934 sx_sunlock(&proctree_lock); 935 if (ppsratecheck(&lastfail, &curfail, 1)) 936 printf("maxproc limit exceeded by uid %i, please see tuning(7) and login.conf(5).\n", 937 td->td_ucred->cr_ruid); 938 sx_xunlock(&allproc_lock); 939#ifdef MAC 940 mac_proc_destroy(newproc); 941#endif | 39 40#include "opt_kdtrace.h" 41#include "opt_ktrace.h" 42#include "opt_kstack_pages.h" 43#include "opt_procdesc.h" 44 45#include <sys/param.h> 46#include <sys/systm.h> --- 887 unchanged lines hidden (view full) --- 934 sx_sunlock(&proctree_lock); 935 if (ppsratecheck(&lastfail, &curfail, 1)) 936 printf("maxproc limit exceeded by uid %i, please see tuning(7) and login.conf(5).\n", 937 td->td_ucred->cr_ruid); 938 sx_xunlock(&allproc_lock); 939#ifdef MAC 940 mac_proc_destroy(newproc); 941#endif |
942fail1: | |
943 racct_proc_exit(newproc); | 942 racct_proc_exit(newproc); |
943fail1: |
|
944 if (vm2 != NULL) 945 vmspace_free(vm2); 946 uma_zfree(proc_zone, newproc); 947#ifdef PROCDESC 948 if (((flags & RFPROCDESC) != 0) && (fp_procdesc != NULL)) 949 fdrop(fp_procdesc, td); 950#endif 951 pause("fork", hz / 2); --- 105 unchanged lines hidden --- | 944 if (vm2 != NULL) 945 vmspace_free(vm2); 946 uma_zfree(proc_zone, newproc); 947#ifdef PROCDESC 948 if (((flags & RFPROCDESC) != 0) && (fp_procdesc != NULL)) 949 fdrop(fp_procdesc, td); 950#endif 951 pause("fork", hz / 2); --- 105 unchanged lines hidden --- |