diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-06-08 01:59:39 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-06-08 01:59:39 +0000 |
commit | ca94967d3efd6ed837c39933c721461fc18a01bb (patch) | |
tree | 619c8d13d8572189a74315faf9ebb29da549b301 /eval.c | |
parent | 9f215f197bdefdade9aaadfd1f91eb8c468a0343 (diff) |
merge revision(s) 22627:
* eval.c (rb_thread_schedule): mswin32 doesn't have F_GETFD, so check
with another method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@23648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -11103,7 +11103,11 @@ rb_thread_schedule() if ((FD_ISSET(fd, &readfds) || FD_ISSET(fd, &writefds) || FD_ISSET(fd, &exceptfds)) && +#ifndef _WIN32 fcntl(fd, F_GETFD, &dummy) == -1 && +#else + rb_w32_get_osfhandle(fd) == -1 && +#endif errno == EBADF) { badfd = fd; break; |