Skip to content

Commit

Permalink
prev_mn_schedulable might be clobbered by longjmp
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Jan 30, 2025
1 parent 167985d commit aca0b92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -1811,7 +1811,7 @@ rb_thread_io_blocking_call(rb_blocking_function_t *func, void *data1, int fd, in
volatile VALUE val = Qundef; /* shouldn't be used */
volatile int saved_errno = 0;
enum ruby_tag_type state;
bool prev_mn_schedulable = th->mn_schedulable;
volatile bool prev_mn_schedulable = th->mn_schedulable;
th->mn_schedulable = thread_io_mn_schedulable(th, events, NULL);

// `errno` is only valid when there is an actual error - but we can't
Expand Down

0 comments on commit aca0b92

Please sign in to comment.