CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2025/12/03 10:05:53
Modified files:
sys/kern : kern_prot.c
Log message:
Instead of failing with EINVAL when setthrname(2) is passed a thread
name longer then _MAXCOMLEN-1, 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 first. Man page update to follow.
This makes pthread_set_name_np(3) succeed with long thread names
instead of silently failing.
ok deraadt@ miod@ sthen@ mpi@