Skip to content
This repository has been archived by the owner on Nov 18, 2021. It is now read-only.

Commit

Permalink
Well, that's dumb.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Mitchell committed Aug 2, 2011
1 parent f8d0480 commit be9df8d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions eval.c
Original file line number Diff line number Diff line change
Expand Up @@ -11428,13 +11428,15 @@ rb_thread_schedule()

again:
max = -1;
FD_ZERO(&th->scratch_readfds);
FD_ZERO(&th->scratch_writefds);
FD_ZERO(&th->scratch_exceptfds);
delay = DELAY_INFTY;
now = -1.0;

FOREACH_THREAD_FROM(curr, th) {
FD_ZERO(&th->scratch_readfds);
FD_ZERO(&th->scratch_writefds);
FD_ZERO(&th->scratch_exceptfds);
bzero(&th->scratch_delay_tv, sizeof(struct timeval));

th->wait_for &= ~WAIT_DONE;
if (!found && th->status <= THREAD_RUNNABLE) {
found = 1;
Expand Down

0 comments on commit be9df8d

Please sign in to comment.