mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 12:14:51 +00:00
Update BasicSocket to use rb_io_blocking_region.
This commit is contained in:
parent
9f812522f5
commit
dee15211c1
Notes:
git
2024-10-09 08:05:20 +00:00
@ -597,7 +597,7 @@ rsock_bsock_send(int argc, VALUE *argv, VALUE socket)
|
||||
rb_io_wait(socket, RB_INT2NUM(RUBY_IO_WRITABLE), Qnil);
|
||||
#endif
|
||||
|
||||
ssize_t n = (ssize_t)BLOCKING_REGION_FD(func, &arg);
|
||||
ssize_t n = (ssize_t)rb_io_blocking_region(fptr, func, &arg);
|
||||
|
||||
if (n >= 0) return SSIZET2NUM(n);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user