aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/sctp_output.c
diff options
context:
space:
mode:
authorEric van Gyzen <vangyzen@FreeBSD.org>2016-12-03 01:14:21 +0000
committerEric van Gyzen <vangyzen@FreeBSD.org>2016-12-03 01:14:21 +0000
commitff07dd913e2788f22cf2999f42b8a2d3bc7da220 (patch)
treed20ada1d7b19b1e36a9410d7353f063307500d11 /sys/netinet/sctp_output.c
parent86bd08e9ee24812240e144fba570f88d31dd0b97 (diff)
downloadsrc-ff07dd913e2788f22cf2999f42b8a2d3bc7da220.tar.gz
src-ff07dd913e2788f22cf2999f42b8a2d3bc7da220.zip
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
Notes
Notes: svn path=/head/; revision=309460
Diffstat (limited to 'sys/netinet/sctp_output.c')
0 files changed, 0 insertions, 0 deletions