PERFORCE change 49603 for review
Marcel Moolenaar
marcel at FreeBSD.org
Tue Mar 23 17:37:53 PST 2004
http://perforce.freebsd.org/chv.cgi?CH=49603
Change 49603 by marcel at 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;
More information about the p4-projects
mailing list