diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | thread.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Tue May 3 04:27:53 2011 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * thread.c (rb_thread_select): preserve errno if no error + occurred. + Tue May 3 03:57:04 2011 Nobuyoshi Nakada <nobu@ruby-lang.org> * include/ruby/intern.h (rb_w32_fdcopy): add prototype. fixes @@ -2672,7 +2672,7 @@ rb_thread_select(int max, fd_set * read, fd_set * write, fd_set * except, return 0; } else { - int lerrno; + int lerrno = errno; int result; BLOCKING_REGION({ |