Skip to content

Commit b778145

Browse files
committed
Io wait fix
PullRequest: truffleruby/660
2 parents a7dac6c + 09c375d commit b778145

File tree

7 files changed

+5
-7
lines changed

7 files changed

+5
-7
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# 1.0 RC 14
22

3+
Bug fixes:
4+
5+
* Implement `rb_io_wait_writable` (#1586).
6+
37
Changes:
48

59
* `-Xoptions` has been removed - use `--help:languages` instead.
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
fails:C-API Class function rb_call_super calls the method in the superclass through two native levels
21
fails(autoload):C-API Class function rb_path2class resolves autoload constants
32
fails(autoload):C-API Class function rb_path_to_class resolves autoload constants
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
fails(uses-fork):C-API Kernel function rb_set_end_proc runs a C function on shutdown
2-
fails:C-API Kernel function rb_yield rb_yield to block passed to enumerator

spec/tags/optional/capi/module_tags.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

spec/tags/optional/capi/struct_tags.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
fails:C-API Struct function rb_struct_define_under returns the member names as Symbols
21
fails:C-API Struct function rb_struct_define raises an ArgumentError if arguments contain duplicate member name
32
fails:C-API Struct function rb_struct_getmember returns the value of a struct member
43
fails:C-API Struct function rb_struct_getmember raises a NameError if the struct member does not exist

spec/tags/optional/capi/thread_tags.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/main/c/cext/ruby.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2531,7 +2531,7 @@ int rb_io_wait_writable(int fd) {
25312531
#if defined(EWOULDBLOCK) && EWOULDBLOCK != EAGAIN
25322532
case EWOULDBLOCK:
25332533
#endif
2534-
rb_tr_error("rb_io_wait_writable wait case not implemented");
2534+
rb_thread_fd_writable(fd);
25352535
return true;
25362536

25372537
default:

0 commit comments

Comments
 (0)