This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/11390] support for pthread_setname_np() / pthread_getname_np()
- From: "johnstul at us dot ibm dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 9 Apr 2010 19:15:52 -0000
- Subject: [Bug libc/11390] support for pthread_setname_np() / pthread_getname_np()
- References: <20100316225040.11390.johnstul@us.ibm.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From johnstul at us dot ibm dot com 2010-04-09 19:15 -------
(In reply to comment #5)
> I don't like the limitation but I added the code. It's not really a good idea
> to rely on the /proc filesystem. This is why the code I committed uses prctl
> when possible. Perhaps if people find the interface useful pressure on the
> kernel people is sufficient to enlarge the field.
>
> I didn't use your code. It contained many problems and unnecessary code.
Thanks Ulrich!
By the way, I was looking at the git commit you made
86a4c67fb91b82c7b47c115b88ab01b1a696f10f and noticed there is a small bug.
In pthread_getname_np, you are using PR_SET_NAME not PR_GET_NAME with the prctrl.
thanks again
-john
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11390
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.