ruby-changes:8119
From: akr <ko1@a...>
Date: Wed, 1 Oct 2008 00:21:51 +0900 (JST)
Subject: [ruby-changes:8119] Ruby:r19646 (trunk): * process.c (check_exec_redirect): don't depend on rb_stdout and
akr 2008-10-01 00:21:30 +0900 (Wed, 01 Oct 2008) New Revision: 19646 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=19646 Log: * process.c (check_exec_redirect): don't depend on rb_stdout and rb_stderr. Modified files: trunk/ChangeLog trunk/process.c Index: ChangeLog =================================================================== --- ChangeLog (revision 19645) +++ ChangeLog (revision 19646) @@ -1,3 +1,8 @@ +Wed Oct 1 00:20:38 2008 Tanaka Akira <akr@f...> + + * process.c (check_exec_redirect): don't depend on rb_stdout and + rb_stderr. + Tue Sep 30 23:06:58 2008 Yuki Sonoda (Yugui) <yugui@y...> * test/mini/test_mini_test.rb: removed. Index: process.c =================================================================== --- process.c (revision 19645) +++ process.c (revision 19646) @@ -1334,8 +1334,9 @@ index = EXEC_OPTION_OPEN; path = val; FilePathValue(path); - if ((FIXNUM_P(key) && (FIX2INT(key) == 1 || FIX2INT(key) == 2)) || - key == rb_stdout || key == rb_stderr) + if (TYPE(key) == T_FILE) + key = check_exec_redirect_fd(key); + if (FIXNUM_P(key) && (FIX2INT(key) == 1 || FIX2INT(key) == 2)) flags = INT2NUM(O_WRONLY|O_CREAT|O_TRUNC); else flags = INT2NUM(O_RDONLY); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/