HomeFreeBSD

libzpool: set thread names

Description

libzpool: set thread names

Arrange for the thread/task name to be set when new threads are created.
This makes them visible in the process table etc.

pthread_setname_np() is generally available in glibc, musl and FreeBSD,
so no test is required.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Sponsored-by: https://despairlabs.com/sponsor/
Closes #16140

Details

Provenance
rob.norris_klarasystems.comAuthored on Apr 28 2024, 1:03 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on May 1 2024, 5:51 PM
Parents
rG7ac00d3c2665: find_system_library: fix var cleanup when library not found
Branches
Unknown
Tags
Unknown

Event Timeline