kern_fork.c (114323) | kern_fork.c (114434) |
---|---|
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 * $FreeBSD: head/sys/kern/kern_fork.c 114323 2003-04-30 19:41:04Z jhb $ | 39 * $FreeBSD: head/sys/kern/kern_fork.c 114434 2003-05-01 16:59:23Z des $ |
40 */ 41 42#include "opt_ktrace.h" 43#include "opt_mac.h" 44 45#include <sys/param.h> 46#include <sys/systm.h> 47#include <sys/sysproto.h> --- 633 unchanged lines hidden (view full) --- 681 * What if they have an error? XXX 682 */ 683 EVENTHANDLER_INVOKE(process_fork, p1, p2, flags); 684 685 /* 686 * If RFSTOPPED not requested, make child runnable and add to 687 * run queue. 688 */ | 40 */ 41 42#include "opt_ktrace.h" 43#include "opt_mac.h" 44 45#include <sys/param.h> 46#include <sys/systm.h> 47#include <sys/sysproto.h> --- 633 unchanged lines hidden (view full) --- 681 * What if they have an error? XXX 682 */ 683 EVENTHANDLER_INVOKE(process_fork, p1, p2, flags); 684 685 /* 686 * If RFSTOPPED not requested, make child runnable and add to 687 * run queue. 688 */ |
689 microtime(&(p2->p_stats->p_start)); | 689 microuptime(&p2->p_stats->p_start); |
690 if ((flags & RFSTOPPED) == 0) { 691 mtx_lock_spin(&sched_lock); 692 p2->p_state = PRS_NORMAL; 693 TD_SET_CAN_RUN(td2); 694 setrunqueue(td2); 695 mtx_unlock_spin(&sched_lock); 696 } 697 --- 135 unchanged lines hidden --- | 690 if ((flags & RFSTOPPED) == 0) { 691 mtx_lock_spin(&sched_lock); 692 p2->p_state = PRS_NORMAL; 693 TD_SET_CAN_RUN(td2); 694 setrunqueue(td2); 695 mtx_unlock_spin(&sched_lock); 696 } 697 --- 135 unchanged lines hidden --- |