ruby-changes:51899
From: normal <ko1@a...>
Date: Mon, 30 Jul 2018 13:28:33 +0900 (JST)
Subject: [ruby-changes:51899] normal:r64113 (trunk): thread_pthread.c (rb_sigwait_sleep): fix uninitialized poll set in UBF case
normal 2018-07-30 13:28:28 +0900 (Mon, 30 Jul 2018) New Revision: 64113 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64113 Log: thread_pthread.c (rb_sigwait_sleep): fix uninitialized poll set in UBF case [ruby-core:88088] [Misc #14937] [Bug #5343] Modified files: trunk/thread_pthread.c Index: thread_pthread.c =================================================================== --- thread_pthread.c (revision 64112) +++ thread_pthread.c (revision 64113) @@ -1613,9 +1613,10 @@ rb_sigwait_sleep(rb_thread_t *th, int si https://github.com/ruby/ruby/blob/trunk/thread_pthread.c#L1613 { struct pollfd pfd; + pfd.fd = sigwait_fd; + pfd.events = POLLIN; + if (ubf_threads_empty()) { - pfd.fd = sigwait_fd; - pfd.events = POLLIN; (void)ppoll(&pfd, 1, ts, 0); check_signals_nogvl(th, sigwait_fd); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/