Deleted Added
full compact
kern_fork.c (104245) kern_fork.c (104306)
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 104233 2002-09-30 20:20:22Z jmallett $
39 * $FreeBSD: head/sys/kern/kern_fork.c 104306 2002-10-01 17:15:53Z jmallett $
40 */
41
42#include "opt_ktrace.h"
43
44#include <sys/param.h>
45#include <sys/systm.h>
46#include <sys/sysproto.h>
47#include <sys/filedesc.h>

--- 552 unchanged lines hidden (view full) ---

600 p2->p_flag |= P_CONTROLT;
601 SESS_UNLOCK(p1->p_session);
602 if (flags & RFPPWAIT)
603 p2->p_flag |= P_PPWAIT;
604
605 LIST_INSERT_AFTER(p1, p2, p_pglist);
606 PGRP_UNLOCK(p1->p_pgrp);
607 LIST_INIT(&p2->p_children);
40 */
41
42#include "opt_ktrace.h"
43
44#include <sys/param.h>
45#include <sys/systm.h>
46#include <sys/sysproto.h>
47#include <sys/filedesc.h>

--- 552 unchanged lines hidden (view full) ---

600 p2->p_flag |= P_CONTROLT;
601 SESS_UNLOCK(p1->p_session);
602 if (flags & RFPPWAIT)
603 p2->p_flag |= P_PPWAIT;
604
605 LIST_INSERT_AFTER(p1, p2, p_pglist);
606 PGRP_UNLOCK(p1->p_pgrp);
607 LIST_INIT(&p2->p_children);
608 TAILQ_INIT(&p2->p_sigq);
609
610 callout_init(&p2->p_itcallout, 0);
611
612#ifdef KTRACE
613 /*
614 * Copy traceflag and tracefile if enabled.
615 */
616 mtx_lock(&ktrace_mtx);

--- 272 unchanged lines hidden ---
608
609 callout_init(&p2->p_itcallout, 0);
610
611#ifdef KTRACE
612 /*
613 * Copy traceflag and tracefile if enabled.
614 */
615 mtx_lock(&ktrace_mtx);

--- 272 unchanged lines hidden ---