summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-03-14 13:09:47 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-03-14 13:09:47 +0000
commitaf5c7ec2dbabbf38f5c40589f9ae3a4396a8e07e (patch)
tree7553023c045cea993f8d1c9845de3e3c1e0df3a9 /eval.c
parent74d5bc6603cdca9de12c3e9e8afe4971f89c1040 (diff)
*** empty log message ***
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index 591e60eff4..473c53f4cc 100644
--- a/eval.c
+++ b/eval.c
@@ -11738,6 +11738,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);