diff options
author | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-02-14 14:13:46 +0000 |
---|---|---|
committer | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-02-14 14:13:46 +0000 |
commit | d7feebb4b39be7886735acea73de825c5d54e39e (patch) | |
tree | 08957f6b9d68627c5e6fca96c728da2727bb4952 /thread.c | |
parent | fd569ed7ca7bfdbc8c688c5140fe67f92d5dba05 (diff) | |
download | ruby-d7feebb4b39be7886735acea73de825c5d54e39e.tar.gz |
* thread.c (rb_thread_io_blocking_region): reset th->waiting_fd
after blocking region, because remaining waiting_fd might
cause unnecessary IOError.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1151,6 +1151,7 @@ rb_thread_io_blocking_region(rb_blocking_function_t *func, void *data1, int fd) val = func(data1); saved_errno = errno; }, ubf_select, th); + th->waiting_fd = -1; errno = saved_errno; return val; |