kern_fork.c (218a01e0624b8b439277a5e0f5b52a529840121e) | kern_fork.c (5215b1872feaad7ecf7cb1234749ecf04071deef) |
---|---|
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. --- 485 unchanged lines hidden (view full) --- 494 (unsigned) RANGEOF(struct thread, td_startcopy, td_endcopy)); 495 bcopy(&td->td_ksegrp->kg_startcopy, &kg2->kg_startcopy, 496 (unsigned) RANGEOF(struct ksegrp, kg_startcopy, kg_endcopy)); 497#undef RANGEOF 498 499 /* Set up the thread as an active thread (as if runnable). */ 500 ke2->ke_state = KES_THREAD; 501 ke2->ke_thread = td2; | 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. --- 485 unchanged lines hidden (view full) --- 494 (unsigned) RANGEOF(struct thread, td_startcopy, td_endcopy)); 495 bcopy(&td->td_ksegrp->kg_startcopy, &kg2->kg_startcopy, 496 (unsigned) RANGEOF(struct ksegrp, kg_startcopy, kg_endcopy)); 497#undef RANGEOF 498 499 /* Set up the thread as an active thread (as if runnable). */ 500 ke2->ke_state = KES_THREAD; 501 ke2->ke_thread = td2; |
502 ke2->ke_owner = td2; | |
503 td2->td_kse = ke2; | 502 td2->td_kse = ke2; |
504 td2->td_flags &= ~TDF_UNBOUND; /* For the rest of this syscall. */ | |
505 506 /* 507 * Duplicate sub-structures as needed. 508 * Increase reference counts on shared objects. 509 * The p_stats and p_sigacts substructs are set in vm_forkproc. 510 */ 511 p2->p_flag = 0; 512 mtx_lock_spin(&sched_lock); --- 407 unchanged lines hidden --- | 503 504 /* 505 * Duplicate sub-structures as needed. 506 * Increase reference counts on shared objects. 507 * The p_stats and p_sigacts substructs are set in vm_forkproc. 508 */ 509 p2->p_flag = 0; 510 mtx_lock_spin(&sched_lock); --- 407 unchanged lines hidden --- |