vangyzen abbf63d36b thr_set_name(): silently truncate the given name as needed
Instead of failing with ENAMETOOLONG, which is swallowed by
pthread_set_name_np() anyway, truncate the given name to MAXCOMLEN+1
bytes.  This is more likely what the user wants, and saves the
caller from truncating it before the call (which was the only
recourse).

Polish pthread_set_name_np(3) and add a .Xr to thr_set_name(2)
so the user might find the documentation for this behavior.

Reviewed by:	jilles
MFC after:	3 days
Sponsored by:	Dell EMC
2016-12-03 01:14:21 +00:00
..
2016-06-04 20:20:14 +00:00
2016-08-18 06:39:09 +00:00
2016-09-30 15:47:13 +00:00
2013-01-15 14:09:08 +00:00
2015-10-20 23:52:37 +00:00
2013-08-16 13:16:27 +00:00
2016-03-09 13:45:03 +00:00
2016-02-29 17:20:04 +00:00
2016-09-30 13:04:18 +00:00
2015-03-29 19:14:41 +00:00
2016-10-06 17:35:50 +00:00
2016-02-18 18:50:03 +00:00
2014-05-30 02:16:28 +00:00
2016-03-18 08:47:17 +00:00
2012-05-08 18:56:21 +00:00
2012-05-08 18:56:21 +00:00
2016-08-29 19:53:13 +00:00
2016-08-29 18:47:51 +00:00
2016-02-29 17:22:34 +00:00
2016-08-18 06:39:09 +00:00
2016-08-18 06:39:09 +00:00
2015-02-07 13:11:45 +00:00
2016-09-30 16:02:25 +00:00
2012-05-08 18:56:21 +00:00
2016-01-18 20:21:38 +00:00