summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/eval.c b/eval.c
index 9edf9aeb3e..abf4396017 100644
--- a/eval.c
+++ b/eval.c
@@ -6793,7 +6793,7 @@ rb_thread_schedule()
END_FOREACH_FROM(curr, th);
/* Do the select if needed */
- if (need_select || !found) {
+ if (need_select) {
/* Convert delay to a timeval */
/* If a thread is runnable, just poll */
if (found) {
@@ -7321,7 +7321,7 @@ rb_thread_abort_exc_set(thread, val)
#define THREAD_ALLOC(th) do {\
th = ALLOC(struct thread);\
\
- th->status = 0;\
+ th->status = THREAD_RUNNABLE;\
th->result = 0;\
th->errinfo = Qnil;\
\