mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* thread.c (rb_thread_select): preserve errno if no error
occurred. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ab8e05cc45
commit
55a1b1d97a
2 changed files with 6 additions and 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>
|
Tue May 3 03:57:04 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* include/ruby/intern.h (rb_w32_fdcopy): add prototype. fixes
|
* include/ruby/intern.h (rb_w32_fdcopy): add prototype. fixes
|
||||||
|
|
2
thread.c
2
thread.c
|
@ -2672,7 +2672,7 @@ rb_thread_select(int max, fd_set * read, fd_set * write, fd_set * except,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
int lerrno;
|
int lerrno = errno;
|
||||||
int result;
|
int result;
|
||||||
|
|
||||||
BLOCKING_REGION({
|
BLOCKING_REGION({
|
||||||
|
|
Loading…
Add table
Reference in a new issue