kern_fork.c (bcf11e8d0048006ba97cb460a134cc23290428b2) | kern_fork.c (d8b0556c6dcaf4c506039f86af2b52b29524f89e) |
---|---|
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. --- 290 unchanged lines hidden (view full) --- 299 if (vm2 == NULL) { 300 error = ENOMEM; 301 goto fail1; 302 } 303 } 304#ifdef MAC 305 mac_proc_init(newproc); 306#endif | 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. --- 290 unchanged lines hidden (view full) --- 299 if (vm2 == NULL) { 300 error = ENOMEM; 301 goto fail1; 302 } 303 } 304#ifdef MAC 305 mac_proc_init(newproc); 306#endif |
307 knlist_init(&newproc->p_klist, &newproc->p_mtx, NULL, NULL, NULL); | 307 knlist_init_mtx(&newproc->p_klist, &newproc->p_mtx); |
308 STAILQ_INIT(&newproc->p_ktr); 309 310 /* We have to lock the process tree while we look for a pid. */ 311 sx_slock(&proctree_lock); 312 313 /* 314 * Although process entries are dynamically created, we still keep 315 * a global limit on the maximum number we will create. Don't allow --- 547 unchanged lines hidden --- | 308 STAILQ_INIT(&newproc->p_ktr); 309 310 /* We have to lock the process tree while we look for a pid. */ 311 sx_slock(&proctree_lock); 312 313 /* 314 * Although process entries are dynamically created, we still keep 315 * a global limit on the maximum number we will create. Don't allow --- 547 unchanged lines hidden --- |