summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-02-21 09:33:05 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-02-21 09:33:05 +0000
commit32f5e4ecdbfe08dc4549e5fa371a98bca104b46c (patch)
treee3e48cb5f264d59bcf5edd41e91fd5de49ef6d01
parent800ad6ef9402543f80c73b1772d0ebcee7a6751b (diff)
* io.c (argf_to_io): should prefetch argv.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@3525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--eval.c4
-rw-r--r--io.c1
3 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 382de39e56..d18efc6fc4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -18,6 +18,10 @@ Thu Feb 20 23:11:42 2003 Akinori MUSHA <[email protected]>
* instruby.rb: Convert mdoc manpages to man for systems which
nroff(1) does not grok mdoc. [merged from 1.8]
+Tue Feb 18 21:39:27 2003 Yukihiro Matsumoto <[email protected]>
+
+ * io.c (argf_to_io): should prefetch argv.
+
Fri Feb 14 14:25:24 2003 akira yamada <[email protected]>
* lib/uri/generic.rb, lib/uri/ldap.rb, lib/uri/mailto.ldap: all foo=()
@@ -47,6 +51,7 @@ Sat Feb 8 04:04:13 2003 Akinori MUSHA <[email protected]>
lib/shell/error.rb, lib/shell/filter.rb: Fix typos and
grammos. [approved by: keiju]
+>>>>>>> 1.285.2.583
Mon Feb 3 23:46:48 2003 Yukihiro Matsumoto <[email protected]>
* io.c (argf_getline): should not increment lineno at EOF.
diff --git a/eval.c b/eval.c
index 2b019264e3..f21c5c1333 100644
--- a/eval.c
+++ b/eval.c
@@ -7891,7 +7891,9 @@ rb_thread_schedule()
next->gid = 0;
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;
diff --git a/io.c b/io.c
index 6ef69e1e77..6fad35c73c 100644
--- a/io.c
+++ b/io.c
@@ -3222,6 +3222,7 @@ argf_fileno()
static VALUE
argf_to_io()
{
+ next_argv();
return current_file;
}