You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scheduler.c
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -422,6 +422,13 @@ rb_fiber_scheduler_unblock(VALUE scheduler, VALUE blocker, VALUE fiber)
422
422
// If we explicitly preserve `errno` in `io_binwrite` and other similar functions (e.g. by returning it), this code is no longer needed. I hope in the future we will be able to remove it.
423
423
intsaved_errno=errno;
424
424
425
+
#ifdefRUBY_DEBUG
426
+
rb_execution_context_t*ec=GET_EC();
427
+
if (ec->interrupt_flag) {
428
+
rb_bug("rb_fiber_scheduler_unblock called with interrupt flags set");
0 commit comments