diff options
-rw-r--r-- | ChangeLog | 10 | ||||
-rw-r--r-- | eval.c | 2 | ||||
-rw-r--r-- | parse.y | 2 |
3 files changed, 13 insertions, 1 deletions
@@ -1,3 +1,13 @@ +Thu Feb 20 19:05:51 2003 Yukihiro Matsumoto <matz@ruby-lang.org> + + * eval.c (rb_thread_remove): thread may die in the process of + rb_thread_die(). this change was suggested by Rudi Cilibrasi + <cilibrar@drachma.ugcs.caltech.edu>. + + * eval.c (rb_thread_start_0): main thread swapped by fork() may + terminate rb_thread_start_0() successfully. call ruby_stop(0); + this change too was suggested by Rudi. + Thu Feb 20 18:44:51 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net> * file.c (file_expand_path): fix wrong behavior for root file. @@ -7980,6 +7980,7 @@ rb_thread_remove(th) rb_thread_ready(th); rb_thread_die(th); + if (th->status == THREAD_KILLED) return; /* died in process */ th->prev->next = th->next; th->next->prev = th->prev; } @@ -9004,6 +9005,7 @@ rb_thread_start_0(fn, arg, th_arg) } } rb_thread_schedule(); + ruby_stop(0); /* last thread termination */ return 0; /* not reached */ } @@ -3700,7 +3700,7 @@ yylex() } pushback(c); if (ISDIGIT(c)) { - rb_warn("no .<digit> floating literal anymore; put 0 before dot"); + rb_warning("no .<digit> floating literal anymore; put 0 before dot"); } lex_state = EXPR_DOT; return '.'; |