mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* io.c (io_cntl): use rb_thread_io_blocking_region() instead
rb_thread_blocking_region(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
eaf08203dd
commit
b2a8d109b6
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Sun Mar 6 03:22:27 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||
|
||||
* io.c (io_cntl): use rb_thread_io_blocking_region() instead
|
||||
rb_thread_blocking_region().
|
||||
|
||||
Sat Mar 5 22:54:36 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
|
||||
|
||||
* include/ruby/intern.h: fix a typo of prototype declaration.
|
||||
|
|
2
io.c
2
io.c
|
@ -7683,7 +7683,7 @@ io_cntl(int fd, int cmd, long narg, int io_p)
|
|||
arg.narg = narg;
|
||||
arg.io_p = io_p;
|
||||
|
||||
retval = (int)rb_thread_blocking_region(nogvl_io_cntl, &arg, RUBY_UBF_IO, 0);
|
||||
retval = (int)rb_thread_io_blocking_region(nogvl_io_cntl, &arg, fd);
|
||||
#if defined(F_DUPFD)
|
||||
if (!io_p && retval != -1 && cmd == F_DUPFD) {
|
||||
UPDATE_MAXFD(retval);
|
||||
|
|
Loading…
Add table
Reference in a new issue