Project

General

Profile

Bug #18816 » 0001-Use-VM-Lock-when-mutating-waiting-threads-list.patch

tenderlovemaking (Aaron Patterson), 07/11/2022 07:54 PM

View differences:

thread.c
{
struct select_args *args = (struct select_args *)ptr;
ccan_list_del(&args->wfd.wfd_node);
RB_VM_LOCK_ENTER();
{
ccan_list_del(&args->wfd.wfd_node);
}
RB_VM_LOCK_LEAVE();
if (args->read) rb_fd_term(args->read);
if (args->write) rb_fd_term(args->write);
if (args->except) rb_fd_term(args->except);
(3-3/3)