thread_pthread.c (rb_sigwait_sleep): fix uninitialized poll set in UBF case
[ruby-core:88088] [Misc #14937] [Bug #5343] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
18e22154e0
commit
4514362948
@ -1613,9 +1613,10 @@ rb_sigwait_sleep(rb_thread_t *th, int sigwait_fd, const struct timespec *ts)
|
|||||||
{
|
{
|
||||||
struct pollfd pfd;
|
struct pollfd pfd;
|
||||||
|
|
||||||
|
pfd.fd = sigwait_fd;
|
||||||
|
pfd.events = POLLIN;
|
||||||
|
|
||||||
if (ubf_threads_empty()) {
|
if (ubf_threads_empty()) {
|
||||||
pfd.fd = sigwait_fd;
|
|
||||||
pfd.events = POLLIN;
|
|
||||||
(void)ppoll(&pfd, 1, ts, 0);
|
(void)ppoll(&pfd, 1, ts, 0);
|
||||||
check_signals_nogvl(th, sigwait_fd);
|
check_signals_nogvl(th, sigwait_fd);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user