Re: PID of multi-threaded core's file name is wrong in 2.5.59

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Tue Jan 28 2003 - 07:21:25 EST


On Sat, 2003-01-25 at 04:56, MAEDA Naoaki wrote:
> Hi,
>
> I found sometimes pid of muitl-threaded core's file name shows
> wrong number in 2.5.59 with NPTL-0.17. Problem is, pid of core file
> name comes from currnet->pid, but I think it should be current->tgid.

The value needs to be unique so that you can dump multiple threads
at the same time and not have one overwrite another. You might want
to add the tgid as another format type to the core name formatting so
users can select the behaviour you desire however ?

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Jan 31 2003 - 22:00:18 EST