Skip to content

Commit

Permalink
* expand tabs. [ci skip]
Browse files Browse the repository at this point in the history
Please consider using misc/expand_tabs.rb as a pre-commit hook.
  • Loading branch information
matzbot committed May 26, 2023
1 parent d1628fe commit cc698c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions thread.c
Expand Up @@ -1674,7 +1674,7 @@ rb_thread_io_blocking_region(rb_blocking_function_t *func, void *data1, int fd)
struct waiting_fd waiting_fd = {
.fd = fd,
.th = rb_ec_thread_ptr(ec),
.busy = NULL,
.busy = NULL,
};

// `errno` is only valid when there is an actual error - but we can't
Expand Down Expand Up @@ -2487,7 +2487,7 @@ rb_notify_fd_close(int fd, struct rb_io_close_wait_list *busy)
ccan_list_del(&wfd->wfd_node);
ccan_list_add(&busy->list, &wfd->wfd_node);

wfd->busy = busy;
wfd->busy = busy;
err = th->vm->special_exceptions[ruby_error_stream_closed];
rb_threadptr_pending_interrupt_enque(th, err);
rb_threadptr_interrupt(th);
Expand All @@ -2497,7 +2497,7 @@ rb_notify_fd_close(int fd, struct rb_io_close_wait_list *busy)
has_any = !ccan_list_empty(&busy->list);
if (has_any) {
rb_native_mutex_initialize(&busy->mu);
rb_native_cond_initialize(&busy->cv);
rb_native_cond_initialize(&busy->cv);
}
RB_VM_LOCK_LEAVE();

Expand Down

0 comments on commit cc698c6

Please sign in to comment.