mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Make Kernel#p
completely uninterruptible.
This commit is contained in:
parent
753d305503
commit
6b0131db6f
Notes:
git
2022-05-28 12:44:44 +09:00
1 changed files with 3 additions and 3 deletions
2
io.c
2
io.c
|
@ -8685,7 +8685,7 @@ rb_p_result(int argc, const VALUE *argv)
|
|||
}
|
||||
VALUE r_stdout = rb_ractor_stdout();
|
||||
if (RB_TYPE_P(r_stdout, T_FILE)) {
|
||||
rb_io_flush(r_stdout);
|
||||
rb_uninterruptible(rb_io_flush, r_stdout);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue