summaryrefslogtreecommitdiffstats
path: root/rpc/rpc-transport/socket/src/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'rpc/rpc-transport/socket/src/socket.c')
-rw-r--r--rpc/rpc-transport/socket/src/socket.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/rpc/rpc-transport/socket/src/socket.c b/rpc/rpc-transport/socket/src/socket.c
index 02a0a86526a..5cee869fdfc 100644
--- a/rpc/rpc-transport/socket/src/socket.c
+++ b/rpc/rpc-transport/socket/src/socket.c
@@ -2700,7 +2700,8 @@ socket_spawn (rpc_transport_t *this)
/* Create thread after enable detach flag */
- ret = gf_thread_create_detached (&priv->thread, socket_poller, this);
+ ret = gf_thread_create_detached (&priv->thread, socket_poller, this,
+ "spoller");
if (ret) {
gf_log (this->name, GF_LOG_ERROR,
"could not create poll thread");
@@ -3409,7 +3410,7 @@ err:
arg->refd = refd;
th_ret = gf_thread_create_detached (&th_id,
socket_connect_error_cbk,
- arg);
+ arg, "scleanup");
if (th_ret) {
/* Error will be logged by gf_thread_create_attached */
gf_log (this->name, GF_LOG_ERROR, "Thread creation "