blob: 1f6513f2e2d66353a623132930a849bceb99737f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
$NetBSD: patch-thread__pthread.c,v 1.1 2022/01/16 13:57:10 taca Exp $
* Avoid pass "const char *" to SET_ANOTHER_THREAD_NAME();
pthread_setname_np().
--- thread_pthread.c.orig 2020-12-08 09:02:31.000000000 +0000
+++ thread_pthread.c
@@ -1648,7 +1648,7 @@ native_set_another_thread_name(rb_native
{
#if defined SET_ANOTHER_THREAD_NAME || defined SET_CURRENT_THREAD_NAME
char buf[THREAD_NAME_MAX];
- const char *s = "";
+ char *s = "";
# if !defined SET_ANOTHER_THREAD_NAME
if (!pthread_equal(pthread_self(), thread_id)) return;
# endif
|