diff options
author | Ben Pfaff <blp@nicira.com> | 2013-07-25 09:45:43 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2013-07-25 09:45:43 -0700 |
commit | 0f13e65061231a56fdf9428ed1df4a614642a596 (patch) | |
tree | 9ef47476fc099f77075dcac0d1c89e2a165ae9c9 /configure.ac | |
parent | dad0f0e793b75d12e4f0328e89b6b3d4cf67b726 (diff) |
util: Set thread name via pthreads in set_subprogram_name().
This makes "top" and "ps" output more readable on FreeBSD at least, and
the names are also visible in debuggers.
Suggested-by: Ed Maste <emaste@freebsd.org>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Andy Zhou <azhou@nicira.com>
Tested-by: Andy Zhou <azhou@nicira.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index ac847bd33..9646b6a7e 100644 --- a/configure.ac +++ b/configure.ac @@ -64,7 +64,8 @@ AC_CHECK_DECLS([sys_siglist], [], [], [[#include <signal.h>]]) AC_CHECK_MEMBERS([struct stat.st_mtim.tv_nsec, struct stat.st_mtimensec], [], [], [[#include <sys/stat.h>]]) AC_CHECK_MEMBERS([struct ifreq.ifr_flagshigh], [], [], [[#include <net/if.h>]]) -AC_CHECK_FUNCS([mlockall strnlen getloadavg statvfs getmntent_r]) +AC_CHECK_FUNCS([mlockall strnlen getloadavg statvfs getmntent_r \ + pthread_setname_np pthread_set_name_np]) AC_CHECK_HEADERS([mntent.h sys/statvfs.h linux/types.h linux/if_ether.h stdatomic.h]) AC_CHECK_HEADERS([net/if_mib.h], [], [], [[#include <sys/types.h> #include <net/if.h>]]) |