summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/event-epoll.c
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfs/src/event-epoll.c')
-rw-r--r--libglusterfs/src/event-epoll.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libglusterfs/src/event-epoll.c b/libglusterfs/src/event-epoll.c
index c420a8a488f..c1474c8bc69 100644
--- a/libglusterfs/src/event-epoll.c
+++ b/libglusterfs/src/event-epoll.c
@@ -714,7 +714,7 @@ event_dispatch_epoll (struct event_pool *event_pool)
ev_data->event_index = i + 1;
snprintf (thread_name, sizeof(thread_name),
- "%s%d", "epoll", i);
+ "epoll%03hx", (i & 0x3ff));
ret = gf_thread_create (&t_id, NULL,
event_dispatch_epoll_worker,
ev_data, thread_name);
@@ -826,8 +826,7 @@ event_reconfigure_threads_epoll (struct event_pool *event_pool, int value)
snprintf (thread_name,
sizeof(thread_name),
- "%s%d",
- "epoll", i);
+ "epoll%03hx", (i & 0x3ff));
ret = gf_thread_create (&t_id, NULL,
event_dispatch_epoll_worker,
ev_data, thread_name);