kern_fork.c (2441) | kern_fork.c (3291) |
---|---|
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. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)kern_fork.c 8.6 (Berkeley) 4/8/94 | 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. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)kern_fork.c 8.6 (Berkeley) 4/8/94 |
39 * $Id: kern_fork.c,v 1.5 1994/08/18 22:35:00 wollman Exp $ | 39 * $Id: kern_fork.c,v 1.6 1994/09/01 05:12:38 davidg Exp $ |
40 */ 41 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/map.h> 45#include <sys/filedesc.h> 46#include <sys/kernel.h> 47#include <sys/malloc.h> --- 216 unchanged lines hidden (view full) --- 264#endif 265 266 /* 267 * set priority of child to be that of parent 268 */ 269 p2->p_estcpu = p1->p_estcpu; 270 271 /* | 40 */ 41 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/map.h> 45#include <sys/filedesc.h> 46#include <sys/kernel.h> 47#include <sys/malloc.h> --- 216 unchanged lines hidden (view full) --- 264#endif 265 266 /* 267 * set priority of child to be that of parent 268 */ 269 p2->p_estcpu = p1->p_estcpu; 270 271 /* |
272 * copy the realtime attibute 273 */ 274 p2->p_rtprio = p1->p_rtprio; 275 276 /* | |
277 * This begins the section where we must prevent the parent 278 * from being swapped. 279 */ 280 p1->p_flag |= P_NOSWAP; 281 282 /* 283 * Set return values for child before vm_fork, 284 * so they can be copied to child stack. --- 48 unchanged lines hidden --- | 272 * This begins the section where we must prevent the parent 273 * from being swapped. 274 */ 275 p1->p_flag |= P_NOSWAP; 276 277 /* 278 * Set return values for child before vm_fork, 279 * so they can be copied to child stack. --- 48 unchanged lines hidden --- |