* eval.c (rb_thread_raise): err at unstarted thread. (PR#1302)

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2004-03-14 13:07:42 +00:00
Родитель 8226628c80
Коммит 2baa02ec9b
2 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -1,3 +1,7 @@
Sun Mar 14 22:07:38 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval.c (rb_thread_raise): err at unstarted thread. (PR#1302)
Sat Mar 13 14:56:32 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
* test/drb/ut_drb.rb: use 'druby://localhost:0'. [ruby-dev:23078]

3
eval.c
Просмотреть файл

@ -11793,6 +11793,9 @@ rb_thread_raise(argc, argv, th)
{
volatile rb_thread_t th_save = th;
if (!th->next) {
rb_raise(rb_eArgError, "unstarted thread");
}
if (rb_thread_dead(th)) return Qnil;
if (curr_thread == th) {
rb_f_raise(argc, argv);