From 0f5ae7a200673d38d035e7d3165f5441fe0d49a7 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 23 Apr 2020 22:19:28 +0900 Subject: Fixed inverted current thread condition [Bug #16808] --- thread_pthread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'thread_pthread.c') diff --git a/thread_pthread.c b/thread_pthread.c index 6bcb18d89b..f5eebf5b58 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -1622,7 +1622,7 @@ native_set_another_thread_name(rb_nativethread_id_t thread_id, VALUE name) char buf[thread_name_max]; const char *s = ""; # if !defined SET_ANOTHER_THREAD_NAME - if (pthread_equal(pthread_self(), thread_id)) return; + if (!pthread_equal(pthread_self(), thread_id)) return; # endif if (!NIL_P(name)) { long n; -- cgit v1.2.3