[lkml]   [2001]   [Aug]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] 2.4.9 Make thread group id visible in /proc/<pid>/status
In article <26210000.998324773@baldur>,
Dave McCracken <> wrote:
>--On Monday, August 20, 2001 17:19:13 +0100 Alan Cox
><> wrote:
>> I didnt think anyone was using the broken tgid stuff ?
>I was under the impression that the current LinuxThread library does use
>CLONE_THREAD, and I know of at least one project under way that's also
>using it (the NGPT pthread library). The getpid() system call already
>returns tgid instead of pid. I'm also looking into what's involved in
>making tgid more robust.

Hmm, I've always been a bit curious about this .. I don't think getpid()
should return tgid instead of pid. It looks broken to me. Thread groups
are a good idea, but they should act more like process groups do.
Switching pid and tgid is something that the LinuxThreads library
should probably do, but not the kernel. IMHO.

If one really wants CLONE_PID to work, fix CLONE_PID.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:57    [W:0.048 / U:0.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site