mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
prev_mn_schedulable
might be clobbered by longjmp
This commit is contained in:
parent
167985dc87
commit
aca0b92c2f
Notes:
git
2025-01-30 09:20:09 +00:00
1 changed files with 1 additions and 1 deletions
2
thread.c
2
thread.c
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue