Deleted Added
full compact
kern_fork.c (69022) kern_fork.c (69286)
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 69022 2000-11-22 07:42:04Z jake $
39 * $FreeBSD: head/sys/kern/kern_fork.c 69286 2000-11-27 22:52:31Z jake $
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>

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

478 else
479 pptr = p1;
480 p2->p_pptr = pptr;
481 LIST_INSERT_HEAD(&pptr->p_children, p2, p_sibling);
482 LIST_INIT(&p2->p_children);
483 LIST_INIT(&p2->p_heldmtx);
484 LIST_INIT(&p2->p_contested);
485
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>

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

478 else
479 pptr = p1;
480 p2->p_pptr = pptr;
481 LIST_INSERT_HEAD(&pptr->p_children, p2, p_sibling);
482 LIST_INIT(&p2->p_children);
483 LIST_INIT(&p2->p_heldmtx);
484 LIST_INIT(&p2->p_contested);
485
486 callout_init(&p2->p_itcallout, 0);
487 callout_init(&p2->p_slpcallout, 0);
488
486#ifdef KTRACE
487 /*
488 * Copy traceflag and tracefile if enabled.
489 * If not inherited, these were zeroed above.
490 */
491 if (p1->p_traceflag&KTRFAC_INHERIT) {
492 p2->p_traceflag = p1->p_traceflag;
493 if ((p2->p_tracep = p1->p_tracep) != NULL)

--- 120 unchanged lines hidden ---
489#ifdef KTRACE
490 /*
491 * Copy traceflag and tracefile if enabled.
492 * If not inherited, these were zeroed above.
493 */
494 if (p1->p_traceflag&KTRFAC_INHERIT) {
495 p2->p_traceflag = p1->p_traceflag;
496 if ((p2->p_tracep = p1->p_tracep) != NULL)

--- 120 unchanged lines hidden ---