ruby-changes:4978
From: ko1@a...
Date: Mon, 19 May 2008 13:31:11 +0900 (JST)
Subject: [ruby-changes:4978] usa - Ruby:r16471 (ruby_1_8): * process.c (rb_f_system): set last_status when status == -1 because
usa 2008-05-19 13:31:00 +0900 (Mon, 19 May 2008) New Revision: 16471 Modified files: branches/ruby_1_8/ChangeLog branches/ruby_1_8/process.c Log: * process.c (rb_f_system): set last_status when status == -1 because there is no path to set it on win32. this patch is derived from [ruby-core:16787], submitted by Luis Lavena <luislavena at gmail.com> http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/ChangeLog?r1=16471&r2=16470&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/process.c?r1=16471&r2=16470&diff_format=u Index: ruby_1_8/process.c =================================================================== --- ruby_1_8/process.c (revision 16470) +++ ruby_1_8/process.c (revision 16471) @@ -1519,6 +1519,9 @@ } #if !defined(_WIN32) last_status_set(status == -1 ? 127 : status, 0); +#else + if (status == -1) + last_status_set(0x7f << 8, 0); #endif #elif defined(__VMS) VALUE cmd; Index: ruby_1_8/ChangeLog =================================================================== --- ruby_1_8/ChangeLog (revision 16470) +++ ruby_1_8/ChangeLog (revision 16471) @@ -1,3 +1,9 @@ +Mon May 19 13:29:58 2008 NAKAMURA Usaku <usa@r...> + + * process.c (rb_f_system): set last_status when status == -1 because + there is no path to set it on win32. this patch is derived from + [ruby-core:16787], submitted by Luis Lavena <luislavena at gmail.com> + Mon May 19 13:01:05 2008 Nobuyoshi Nakada <nobu@r...> * common.mk ({MSPEC,RUBYSPEC}_GIT_URL): moved from Makefine.in. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/