Skip to content

Commit

Permalink
* eval.c (rb_thread_schedule): current thread may be dead when
Browse files Browse the repository at this point in the history
  deadlock.  (ruby-bugs:PR#588)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Feb 12, 2003
1 parent 4ef1062 commit 168f2f4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Thu Feb 13 01:30:10 2003 Nobuyoshi Nakada <[email protected]>

* eval.c (rb_thread_schedule): current thread may be dead when
deadlock. (ruby-bugs:PR#588)

Thu Feb 13 00:09:47 2003 Nobuyoshi Nakada <[email protected]>

* file.c (strrdirsep): ignore trailing directory separators.
Expand Down
4 changes: 3 additions & 1 deletion eval.c
Original file line number Diff line number Diff line change
Expand Up @@ -8230,7 +8230,9 @@ rb_thread_schedule()
next = main_thread;
rb_thread_ready(next);
next->status = THREAD_TO_KILL;
rb_thread_save_context(curr_thread);
if (!rb_thread_dead(curr_thread)) {
rb_thread_save_context(curr_thread);
}
rb_thread_deadlock();
}
next->wait_for = 0;
Expand Down

0 comments on commit 168f2f4

Please sign in to comment.