Skip to content

Commit

Permalink
* thread.c (rb_thread_wait_fd_rw): should not block by select if
Browse files Browse the repository at this point in the history
  there's only one thread living.  fixed [ruby-dev:36646].

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
matz committed Oct 8, 2008
1 parent 43f77aa commit 22c8e88
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Thu Oct 9 08:47:38 2008 Yukihiro Matsumoto <[email protected]>

* thread.c (rb_thread_wait_fd_rw): should not block by select if
there's only one thread living. fixed [ruby-dev:36646].

Wed Oct 8 20:59:52 2008 Masaki Suketa <[email protected]>

* ext/win32ole/win32ole.c (ole_init_cp): initialize WIN32OLE.codepage
Expand Down
1 change: 1 addition & 0 deletions thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -2235,6 +2235,7 @@ rb_thread_wait_fd_rw(int fd, int read)
if (fd < 0) {
rb_raise(rb_eIOError, "closed stream");
}
if (rb_thread_alone()) return;
while (result <= 0) {
rb_fdset_t set;
rb_fd_init(&set);
Expand Down

0 comments on commit 22c8e88

Please sign in to comment.