From owner-p4-projects@FreeBSD.ORG Tue Mar 23 17:37:52 2004 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id B4E9216A4D0; Tue, 23 Mar 2004 17:37:52 -0800 (PST) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9179116A4CE for ; Tue, 23 Mar 2004 17:37:52 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B2CB43D2D for ; Tue, 23 Mar 2004 17:37:52 -0800 (PST) (envelope-from marcel@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i2O1bqGe091582 for ; Tue, 23 Mar 2004 17:37:52 -0800 (PST) (envelope-from marcel@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i2O1bpIE091578 for perforce@freebsd.org; Tue, 23 Mar 2004 17:37:51 -0800 (PST) (envelope-from marcel@freebsd.org) Date: Tue, 23 Mar 2004 17:37:51 -0800 (PST) Message-Id: <200403240137.i2O1bpIE091578@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to marcel@freebsd.org using -f From: Marcel Moolenaar To: Perforce Change Reviews Subject: PERFORCE change 49603 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Mar 2004 01:37:53 -0000 http://perforce.freebsd.org/chv.cgi?CH=49603 Change 49603 by marcel@marcel_nfs on 2004/03/23 17:36:54 I'm not going to bust my balls over this. Just assign the thread the same ID as the process for a fork(). This way most threads get an unique ID. The only threads that won't have an ID this way are those created for 1:1 or M:N threading support. I don't care about that while working on the fundamental threading support. Affected files ... .. //depot/projects/gdb/sys/kern/kern_fork.c#7 edit Differences ... ==== //depot/projects/gdb/sys/kern/kern_fork.c#7 (text+ko) ==== @@ -498,6 +498,7 @@ #undef RANGEOF td2->td_sigstk = td->td_sigstk; + td2->td_tid = p2->p_pid; /* Set up the thread as an active thread (as if runnable). */ ke2->ke_state = KES_THREAD;