aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorRob Norris <[email protected]>2024-04-21 21:43:53 +1000
committerTony Hutter <[email protected]>2024-07-17 14:54:46 -0700
commit96cad4ca4c1f78fd57a8e3ae1193457606be9eb4 (patch)
tree27be100547129476eb0b16e599afe0213d20bcde /config
parent56684117133943f176f73fdbf0b9535a2bcf251d (diff)
libspl/assert: show process/task details in assert output
Makes it much easier to see what thing complained. Getting thread id, program name and thread name vary wildly between Linux and FreeBSD, so those are set up in macros. pthread_getname_np() did not appear in musl until very recently, but the same info has always been available via prctl(PR_GET_NAME), so we use that instead. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Rob Norris <[email protected]> Sponsored-by: https://despairlabs.com/sponsor/ Closes #16140
Diffstat (limited to 'config')
-rw-r--r--config/user.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/config/user.m4 b/config/user.m4
index 87df8c7cc..3a69086a9 100644
--- a/config/user.m4
+++ b/config/user.m4
@@ -31,7 +31,7 @@ AC_DEFUN([ZFS_AC_CONFIG_USER], [
ZFS_AC_CONFIG_USER_MAKEDEV_IN_MKDEV
ZFS_AC_CONFIG_USER_ZFSEXEC
- AC_CHECK_FUNCS([execvpe issetugid mlockall strlcat strlcpy])
+ AC_CHECK_FUNCS([execvpe issetugid mlockall strlcat strlcpy gettid])
AC_SUBST(RM)
])