ruby-changes:60885
From: Nobuyoshi <ko1@a...>
Date: Thu, 23 Apr 2020 22:20:49 +0900 (JST)
Subject: [ruby-changes:60885] 0f5ae7a200 (master): Fixed inverted current thread condition [Bug #16808]
https://git.ruby-lang.org/ruby.git/commit/?id=0f5ae7a200 From 0f5ae7a200673d38d035e7d3165f5441fe0d49a7 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Thu, 23 Apr 2020 22:19:28 +0900 Subject: Fixed inverted current thread condition [Bug #16808] diff --git a/thread_pthread.c b/thread_pthread.c index 6bcb18d..f5eebf5 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) https://github.com/ruby/ruby/blob/trunk/thread_pthread.c#L1622 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 v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/