Download raw body.
Truncate long thread names in setthrname(2)
On Nov 23, 2025, at 7:06 PM, Kurt Miller <kurt@intricatesoftware.com> wrote: > > Instead of failing with EINVAL when setthrname(2) is passed a thread > name longer then MAXCOMLEN, truncate the name to fit. This is likely > what the user wants and saves them from having to snprintf(3) into a > buffer sized MAXCOMLEN+1 first. > > This makes pthread_set_name_np(3) succeed with long thread names > instead of silently failing. Forgot to mention: and also matches what FreeBSD does.
Truncate long thread names in setthrname(2)