Skip to content

Commit

Permalink
1.6.2 (to be)
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
matz committed Oct 17, 2000
1 parent d51bcd2 commit 1b2d3f8
Show file tree
Hide file tree
Showing 8 changed files with 75 additions and 17 deletions.
36 changes: 36 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
Wed Oct 18 03:10:20 2000 Yukihiro Matsumoto <matz@ruby-lang.org>

* stable version 1.6.2 released.

Tue Oct 17 17:30:34 2000 WATANABE Hirofumi <eban@ruby-lang.org>

* eval.c (error_print): ruby_sourcefile may be NULL.

Tue Oct 17 16:36:28 2000 Wes Nakamura <wknaka@pobox.com>

* pack.c (NATINT_U32): wrong use of sizeof.

Tue Oct 17 12:48:20 2000 Katsuyuki Komatsu <komatsu@sarion.co.jp>

* eval.c (rb_abort): nil check against ruby_errinfo.

* eval.c (rb_thread_schedule): use FOREACH_THREAD_FROM instead of
FOREACH_THREAD, since curr_thread may be removed from thread ring.

* eval.c (THREAD_ALLOC): errinfo should be Qnil.

* eval.c (rb_callcc): th->prev,th->next are now already
initialized in THREAD_ALLOC.

Mon Oct 16 15:37:33 2000 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>

* eval.c (rb_thread_inspect): tag size was shorter than required.
Expand Down Expand Up @@ -27,6 +51,18 @@ Mon Oct 16 01:02:02 2000 Yukihiro Matsumoto <matz@ruby-lang.org>

* parse.y (sym): symbols for class variable names.

Sun Oct 15 01:49:18 2000 Yukihiro Matsumoto <matz@ruby-lang.org>

* file.c (rb_file_flock): should accept interrupt.

* process.c (rb_waitpid): ditto.

* process.c (rb_waitpid): ditto.

* process.c (proc_wait): ditto.

* process.c (proc_waitpid2): wrong recursion.

Sat Oct 14 03:32:13 2000 Yukihiro Matsumoto <matz@ruby-lang.org>

* eval.c (rb_thread_alloc): should not link a new thread in the
Expand Down
15 changes: 8 additions & 7 deletions eval.c
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,10 @@ error_print()
}
POP_TAG();
if (NIL_P(errat)) {
fprintf(stderr, "%s:%d", ruby_sourcefile, ruby_sourceline);
if (ruby_sourcefile)
fprintf(stderr, "%s:%d", ruby_sourcefile, ruby_sourceline);
else
fprintf(stderr, "%d", ruby_sourceline);
}
else {
VALUE mesg = RARRAY(errat)->ptr[0];
Expand Down Expand Up @@ -3224,7 +3227,7 @@ rb_f_exit(argc, argv, obj)
static void
rb_abort()
{
if (ruby_errinfo) {
if (!NIL_P(ruby_errinfo)) {
error_print();
}
rb_exit(1);
Expand Down Expand Up @@ -7110,7 +7113,7 @@ rb_thread_schedule()
if (n < 0) {
if (rb_trap_pending) rb_trap_exec();
if (errno == EINTR) goto again;
FOREACH_THREAD(th) {
FOREACH_THREAD_FROM(curr, th) {
if (th->wait_for & WAIT_SELECT) {
int v = 0;

Expand All @@ -7123,7 +7126,7 @@ rb_thread_schedule()
}
}
}
END_FOREACH(th);
END_FOREACH_FROM(curr, th);
}
if (n > 0) {
now = -1.0;
Expand Down Expand Up @@ -7638,7 +7641,6 @@ rb_thread_abort_exc_set(thread, val)
\
th->status = THREAD_RUNNABLE;\
th->result = 0;\
th->errinfo = Qnil;\
\
th->stk_ptr = 0;\
th->stk_len = 0;\
Expand All @@ -7659,7 +7661,7 @@ rb_thread_abort_exc_set(thread, val)
th->iter = 0;\
th->tag = 0;\
th->tracing = 0;\
th->errinfo = 0;\
th->errinfo = Qnil;\
th->last_status = 0;\
th->last_line = 0;\
th->last_match = 0;\
Expand Down Expand Up @@ -8205,7 +8207,6 @@ rb_callcc(self)
for (tag=prot_tag; tag; tag=tag->prev) {
scope_dup(tag->scope);
}
th->prev = th->next = 0;
th->thread = curr_thread->thread;

for (vars = th->dyna_vars; vars; vars = vars->next) {
Expand Down
6 changes: 5 additions & 1 deletion file.c
Original file line number Diff line number Diff line change
Expand Up @@ -1530,14 +1530,18 @@ rb_file_flock(obj, operation)
{
#ifndef __CHECKER__
OpenFile *fptr;
int ret;

rb_secure(2);
GetOpenFile(obj, fptr);

if (fptr->mode & FMODE_WRITABLE) {
fflush(GetWriteFile(fptr));
}
if (flock(fileno(fptr->f), NUM2INT(operation)) < 0) {
TRAP_BEG;
ret = flock(fileno(fptr->f), NUM2INT(operation));
TRAP_END;
if (ret < 0) {
#ifdef EWOULDBLOCK
if (errno == EWOULDBLOCK) {
return Qfalse;
Expand Down
7 changes: 6 additions & 1 deletion lib/cgi/session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ def initialize(request, option={})
request.instance_eval do
@output_hidden = {session_key => id}
@output_cookies = [
Cookie::new(session_key => id,
Cookie::new("name" => session_key,
"value" => id,
"path" => if ENV["SCRIPT_NAME"] then
File::dirname(ENV["SCRIPT_NAME"])
else
Expand Down Expand Up @@ -84,6 +85,10 @@ def update
@dbman.update
end

def close
@dbman.close
end

def delete
@dbman.delete
end
Expand Down
11 changes: 7 additions & 4 deletions pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
#ifdef NATINT_PACK
# define OFF16B(p) ((char*)(p) + (natint?0:(sizeof(short) - SIZE16)))
# define OFF32B(p) ((char*)(p) + (natint?0:(sizeof(long) - SIZE32)))
# define NATINT_I32(x) (natint?sizeof(NUM2LONG(x)):(NUM2I32(x)))
# define NATINT_U32(x) (natint?sizeof(NUM2ULONG(x)):(NUM2U32(x)))
# define NATINT_I32(x) (natint?NUM2LONG(x):(NUM2I32(x)))
# define NATINT_U32(x) (natint?NUM2ULONG(x):(NUM2U32(x)))
# define NATINT_LEN(type,len) (natint?sizeof(type):(len))
# ifdef WORDS_BIGENDIAN
# define OFF16(p) OFF16B(p)
Expand All @@ -38,12 +38,15 @@
#endif

#ifndef OFF16
# define OFF16B(p) (char*)(p)
# define OFF32B(p) (char*)(p)
# define OFF16(p) (char*)(p)
# define OFF32(p) (char*)(p)
#endif

#ifndef OFF16B
# define OFF16B(p) (char*)(p)
# define OFF32B(p) (char*)(p)
#endif

#define define_swapx(x, xtype) \
static xtype \
TOKEN_PASTE(swap,x)(z) \
Expand Down
12 changes: 10 additions & 2 deletions process.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,13 @@ rb_waitpid(pid, flags, st)
}

retry:
TRAP_BEG;
#ifdef HAVE_WAITPID
result = waitpid(pid, st, flags);
#else /* HAVE_WAIT4 */
result = wait4(pid, st, flags, NULL);
#endif
TRAP_END;
if (result < 0) {
if (errno == EINTR) {
rb_thread_polling();
Expand All @@ -116,7 +118,9 @@ rb_waitpid(pid, flags, st)
}

for (;;) {
TRAP_BEG;
result = wait(st);
TRAP_END;
if (result < 0) {
if (errno == EINTR) {
rb_thread_schedule();
Expand Down Expand Up @@ -170,7 +174,11 @@ proc_wait()
return INT2FIX(data.pid);
}

while ((pid = wait(&state)) < 0) {
while (1) {
TRAP_BEG;
pid = wait(&state);
TRA_END;
if (pid >= 0) break;
if (errno == EINTR) {
rb_thread_schedule();
continue;
Expand Down Expand Up @@ -218,7 +226,7 @@ proc_waitpid2(argc, argv)
int argc;
VALUE *argv;
{
VALUE pid = proc_waitpid2(argc, argv);
VALUE pid = proc_waitpid(argc, argv);
return rb_assoc_new(pid, rb_last_status);
}

Expand Down
1 change: 1 addition & 0 deletions time.c
Original file line number Diff line number Diff line change
Expand Up @@ -1098,6 +1098,7 @@ Init_Time()
rb_define_method(rb_cTime, "wday", time_wday, 0);
rb_define_method(rb_cTime, "yday", time_yday, 0);
rb_define_method(rb_cTime, "isdst", time_isdst, 0);
rb_define_method(rb_cTime, "dst?", time_isdst, 0);
rb_define_method(rb_cTime, "zone", time_zone, 0);

rb_define_method(rb_cTime, "utc?", time_utc_p, 0);
Expand Down
4 changes: 2 additions & 2 deletions version.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define RUBY_VERSION "1.6.2"
#define RUBY_RELEASE_DATE "2000-10-16"
#define RUBY_RELEASE_DATE "2000-10-18"
#define RUBY_VERSION_CODE 162
#define RUBY_RELEASE_CODE 20001016
#define RUBY_RELEASE_CODE 20001018

0 comments on commit 1b2d3f8

Please sign in to comment.