diff options
author | Samuel Williams <[email protected]> | 2024-10-09 17:17:37 +1300 |
---|---|---|
committer | Samuel Williams <[email protected]> | 2024-10-09 21:05:01 +1300 |
commit | dee15211c154cc70409a6010883140f259d1c483 (patch) | |
tree | 153317176d8fb1774d3ad27fe785d4ae52cf5e64 | |
parent | 9f812522f521bf4f3d550a84233a05d23e7dd5ec (diff) |
Update `BasicSocket` to use `rb_io_blocking_region`.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/11796
-rw-r--r-- | ext/socket/basicsocket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/socket/basicsocket.c b/ext/socket/basicsocket.c index 8af8374ecf..2fcae8eb54 100644 --- a/ext/socket/basicsocket.c +++ b/ext/socket/basicsocket.c @@ -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); |