summaryrefslogtreecommitdiff
path: root/nfs/rpc.c
diff options
context:
space:
mode:
Diffstat (limited to 'nfs/rpc.c')
-rw-r--r--nfs/rpc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/nfs/rpc.c b/nfs/rpc.c
index 2a74094a..ebd7bd1d 100644
--- a/nfs/rpc.c
+++ b/nfs/rpc.c
@@ -36,6 +36,7 @@
#include <error.h>
#include <unistd.h>
#include <stdio.h>
+#include <pthread.h>
/* One of these exists for each pending RPC. */
struct rpc_list
@@ -354,6 +355,8 @@ timeout_service_thread (void *arg)
{
(void) arg;
+ pthread_setname_np (pthread_self (), "timeout");
+
while (1)
{
sleep (1);
@@ -374,6 +377,8 @@ rpc_receive_thread (void *arg)
(void) arg;
+ pthread_setname_np (pthread_self (), "rpc_receive");
+
/* Allocate a receive buffer. */
buf = malloc (1024 + read_size);
assert_backtrace (buf);