pthreaded servers: set thread names
authorGarrett Wollman <wollman@csail.mit.edu>
Mon, 18 Jul 2011 01:57:20 +0000 (21:57 -0400)
committerDerrick Brashear <shadow@dementia.org>
Fri, 29 Jul 2011 21:16:25 +0000 (14:16 -0700)
commit192ba0deae276e5bbea2580da2019a4d743daab3
tree0857169067b1cae563f88925f3df699da5fd31c9
parente453f49bd4d501210e4d1696cb07158c4b887334
pthreaded servers: set thread names

In the startup function for each thread, set a thread name.  This
can safely be done unconditionally as LWP builds turn the call into
a no-op.  In general, the thread name parallels the name passed to
LWP_CreateProcess, but for Rx server threads, it additionally includes
the thread ID so that these threads can easily be distinguished.  (I'm
not sure yet whether doing so will prove to be useful or counterproductive.)

Change-Id: I30e012eebef4c7856084fa8b8eb1d88d9fcdf2c4
Reviewed-on: http://gerrit.openafs.org/5041
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
17 files changed:
src/budb/dbs_dump.c
src/butc/dbentries.c
src/butc/dump.c
src/butc/lwps.c
src/butc/recoverDb.c
src/butc/tcudbprocs.c
src/tptserver/Makefile.in
src/tubik/Makefile.in
src/tviced/Makefile.in
src/tvlserver/Makefile.in
src/tvolser/Makefile.in
src/ubik/beacon.c
src/ubik/recovery.c
src/viced/viced.c
src/vol/fssync-server.c
src/vol/ihandle.c
src/volser/volmain.c