util: Set thread name via pthreads in set_subprogram_name().
authorBen Pfaff <blp@nicira.com>
Thu, 25 Jul 2013 16:45:43 +0000 (09:45 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 25 Jul 2013 16:45:43 +0000 (09:45 -0700)
commit0f13e65061231a56fdf9428ed1df4a614642a596
tree9ef47476fc099f77075dcac0d1c89e2a165ae9c9
parentdad0f0e793b75d12e4f0328e89b6b3d4cf67b726
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>
configure.ac
lib/util.c