1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* io.c (select_internal): remove unused variable (interrupt_flag).

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kosaki 2011-05-12 17:16:21 +00:00
parent 9fac3321a7
commit 836a8cf214
2 changed files with 38 additions and 37 deletions

View file

@ -1,3 +1,7 @@
Fri May 13 02:15:18 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* io.c (select_internal): remove unused variable (interrupt_flag).
Thu May 12 18:24:34 2011 Kouhei Sutou <kou@clear-code.com>
* configure.in: limit to "T" type for prefix of external symbols

3
io.c
View file

@ -7236,7 +7236,6 @@ select_internal(VALUE read, VALUE write, VALUE except, struct timeval *tp, rb_fd
rb_io_t *fptr;
long i;
int max = 0, n;
int interrupt_flag = 0;
int pending = 0;
struct timeval timerec;
@ -7306,7 +7305,6 @@ select_internal(VALUE read, VALUE write, VALUE except, struct timeval *tp, rb_fd
rb_ary_push(res, wp?rb_ary_new():rb_ary_new2(0));
rb_ary_push(res, ep?rb_ary_new():rb_ary_new2(0));
if (interrupt_flag == 0) {
if (rp) {
list = RARRAY_PTR(res)[0];
for (i=0; i< RARRAY_LEN(read); i++) {
@ -7351,7 +7349,6 @@ select_internal(VALUE read, VALUE write, VALUE except, struct timeval *tp, rb_fd
}
}
}
}
return res; /* returns an empty array on interrupt */
}