commit | b122c8b1030e4da9cbc0e7e401a72e1d614e9c3e | [log] [tgz] |
---|---|---|
author | Andy McFadden <fadden@android.com> | Thu Jul 08 15:43:19 2010 -0700 |
committer | Andy McFadden <fadden@android.com> | Thu Jul 08 17:17:15 2010 -0700 |
tree | 1df23dadcbfcf0fd6f72b6b6ef286cc5d3f08f07 | |
parent | e5289ebcda44ae0167d29f482cbb521f51e49f96 [diff] |
Fix thread names. The prctl() call we were using politely truncates overly-long strings. The pthread_setname_np() call returns ERANGE. This adds a buffer copy to create a truncated string. I'm strongly tempted to just back out the previous change and go back to using prctl(), but there's probably some value in using a pthread call, even if it is _np (and appears to exist but declared differently on other platforms). Change-Id: Ib692ea0e225f691e4888b27883c61f7701272245