Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Sep 2013 16:06:55 -0400
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-net@freebsd.org
Cc:        Laurie Jennings <laurie_jennings_1977@yahoo.com>
Subject:   Re: Does pthread_set_name_np() work?
Message-ID:  <201309031606.55154.jhb@freebsd.org>
In-Reply-To: <1377102969.15111.YahooMailBasic@web125803.mail.ne1.yahoo.com>
References:  <1377102969.15111.YahooMailBasic@web125803.mail.ne1.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday, August 21, 2013 12:36:09 pm Laurie Jennings wrote:
> Im trying to set the names of threads so I can distinguish them in top -H, 
but it doesn't seem to 
> take the thread id as valid.
> 
> err=pthread_set_name_np(pthread_self(),"FOO");

This function returns void, not an error, so you can't trust the return value.

-- 
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309031606.55154.jhb>